diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/c-c++-common/gomp/atomic-3.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/c-c++-common/gomp/atomic-3.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/c-c++-common/gomp/atomic-3.c b/gcc-4.9/gcc/testsuite/c-c++-common/gomp/atomic-3.c new file mode 100644 index 000000000..5b9e60cde --- /dev/null +++ b/gcc-4.9/gcc/testsuite/c-c++-common/gomp/atomic-3.c @@ -0,0 +1,14 @@ +/* { dg-do compile } */ +/* { dg-options "-fopenmp -fdump-tree-ompexp" } */ +/* { dg-require-effective-target cas_int } */ + +int *xyzzy; + +void f1(void) +{ + #pragma omp atomic + xyzzy++; +} + +/* { dg-final { scan-tree-dump-times "xyzzy, 4" 1 "ompexp" } } */ +/* { dg-final { cleanup-tree-dump "ompexp" } } */ |