| 1 | // RUN: %clang_cc1 -verify -fopenmp -ferror-limit 150 -o - %s |
|---|---|
| 2 | |
| 3 | int incomplete[]; |
| 4 | |
| 5 | void test() { |
| 6 | #pragma omp parallel reduction(+ : incomplete) // expected-error {{a reduction list item with incomplete type 'int []'}} |
| 7 | ; |
| 8 | } |
| 9 | |
| 10 | // complete to suppress an additional warning, but it's too late for pragmas |
| 11 | int incomplete[3]; |
| 12 |