blob: ee88cf15a12380cae8be6a2be071fc687fa64ced (
plain)
1
2
3
4
5
6
7
8
9
10
|
// RUN: %clang_cc1 -verify -fsyntax-only -fopenmp -x c %s
int c[-1]; // expected-error {{'c' declared as an array with a negative size}}
void foo (){
#pragma omp task depend(inout: c[:][:])
{
c[0] = 1;
}
}
|