Clang Project

clang_source_code/test/OpenMP/parallel_reduction_messages.c
1// RUN: %clang_cc1 -verify -fopenmp -ferror-limit 150 -o - %s
2
3int incomplete[];
4
5void 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
11int incomplete[3];
12