summaryrefslogtreecommitdiff
path: root/test/OpenMP/parallel_reduction_messages.c
blob: f88f8e05649530fb5506c645717bce6a5379a351 (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: %clang_cc1 -verify -fopenmp -ferror-limit 150 -o - %s

int incomplete[];

void test() {
#pragma omp parallel reduction(+ : incomplete) // expected-error {{a reduction list item with incomplete type 'int []'}}
  ;
}

// complete to suppress an additional warning, but it's too late for pragmas
int incomplete[3];