brintos

brintos / llvm-project-archived public Read only

0
0
Text · 218 B · ee88cf1 Raw
11 lines · c
1// RUN: %clang_cc1 -verify -fsyntax-only -fopenmp -x c %s2 3int c[-1]; // expected-error {{'c' declared as an array with a negative size}}4 5void foo (){6  #pragma omp task depend(inout: c[:][:])7  {8    c[0] = 1;9  }10}11