diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/gomp/atomic-6.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/gomp/atomic-6.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/gomp/atomic-6.c b/gcc/testsuite/gcc.dg/gomp/atomic-6.c new file mode 100644 index 00000000000..0d56becd85e --- /dev/null +++ b/gcc/testsuite/gcc.dg/gomp/atomic-6.c @@ -0,0 +1,10 @@ +/* { dg-do compile } */ + +int x[10], z; +double y[10]; + +void f1(void) +{ + #pragma omp atomic + x[z] /= y[z]; +} |