Debian Codegraph @

clang/test/OpenMP/bug69198.c

raw
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
5 void foo (){
6 #pragma omp task depend(inout: c[:][:])
7 {
8 c[0] = 1;
9 }
10 }