diff options
Diffstat (limited to 'gcc/testsuite/c-c++-common/goacc/clauses-fail.c')
-rw-r--r-- | gcc/testsuite/c-c++-common/goacc/clauses-fail.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/c-c++-common/goacc/clauses-fail.c b/gcc/testsuite/c-c++-common/goacc/clauses-fail.c index 661d364..853d010 100644 --- a/gcc/testsuite/c-c++-common/goacc/clauses-fail.c +++ b/gcc/testsuite/c-c++-common/goacc/clauses-fail.c @@ -1,3 +1,5 @@ +/* Miscellaneous tests where clause parsing is expected to fail. */ + void f (void) { @@ -17,3 +19,13 @@ f (void) for (i = 0; i < 2; ++i) ; } + + +void +f2 (void) +{ + int a, b[100]; + +#pragma acc parallel firstprivate (b[10:20]) /* { dg-error "expected ... before ... token" } */ + ; +} |