xref: /llvm-project/clang/test/OpenMP/bug69198.c (revision df2725f3d55ffdc8ca2f9580183956e376a30de7)
1 // RUN: %clang_cc1 -verify -fsyntax-only -fopenmp -x c %s
2 
3 int c[-1]; // expected-error {{'c' declared as an array with a negative size}}
4 
foo()5 void foo (){
6   #pragma omp task depend(inout: c[:][:])
7   {
8     c[0] = 1;
9   }
10 }
11