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 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