bolt/deps/llvm-18.1.8/clang/test/OpenMP/bug69198.c
2025-02-14 19:21:04 +01:00

10 lines
218 B
C

// 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;
}
}