diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/c-c++-common/gomp/single1.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/c-c++-common/gomp/single1.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/c-c++-common/gomp/single1.c b/gcc-4.9/gcc/testsuite/c-c++-common/gomp/single1.c new file mode 100644 index 000000000..c080a8804 --- /dev/null +++ b/gcc-4.9/gcc/testsuite/c-c++-common/gomp/single1.c @@ -0,0 +1,15 @@ +/* { dg-do compile } */ +/* { dg-options "-fopenmp" } */ + +void +foo (int i) +{ + #pragma omp single copyprivate (i) + ; + #pragma omp single nowait + ; + #pragma omp single copyprivate (i) nowait /* { dg-error "clause must not be used together with" } */ + ; + #pragma omp single nowait copyprivate (i) /* { dg-error "clause must not be used together with" } */ + ; +} |