Skip to content

Commit b36dfcf

Browse files
committed
[Clang][OpenMP]: add tests for PR #71552
1 parent 009afe8 commit b36dfcf

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

clang/test/OpenMP/bug69198.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
// RUN: %clang_cc1 -verify -fopenmp -x c -triple x86_64-apple-darwin10 %s
2-
// expected-no-diagnostics
1+
// RUN: %clang_cc1 -verify -fsyntax-only -fopenmp -x c %s
32

4-
int c[-1];
3+
int c[-1]; // expected-error {{'c' declared as an array with a negative size}}
54

65
void foo (){
76
#pragma omp task depend(inout: c[:][:])
7+
{
8+
c[0] = 1;
9+
}
810
}

0 commit comments

Comments
 (0)