gcc/testsuite/c-c++-common/gomp/pr118639.c
raw| 1 | /* PR c/118639 */ |
| 2 | /* { dg-do compile } */ |
| 3 | |
| 4 | void |
| 5 | foo (void) |
| 6 | { |
| 7 | int a = 0, b = 0, c = 0; |
| 8 | #ifndef __cplusplus |
| 9 | #pragma omp allocate (a, ) /* { dg-error "expected" "" { target c } } */ |
| 10 | #endif |
| 11 | #pragma omp flush (b, ) /* { dg-error "expected" } */ |
| 12 | #pragma omp parallel firstprivate (c, ) /* { dg-error "expected" } */ |
| 13 | ; |
| 14 | } |