summaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/gomp/scan-2.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/c-c++-common/gomp/scan-2.c')
-rw-r--r--gcc/testsuite/c-c++-common/gomp/scan-2.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/c-c++-common/gomp/scan-2.c b/gcc/testsuite/c-c++-common/gomp/scan-2.c
new file mode 100644
index 00000000000..14b74a5b87f
--- /dev/null
+++ b/gcc/testsuite/c-c++-common/gomp/scan-2.c
@@ -0,0 +1,14 @@
+int a, b;
+
+void
+f1 (int *c, int *d)
+{
+ int i;
+ #pragma omp simd reduction (inscan, +: a)
+ for (i = 0; i < 64; i++)
+ {
+ d[i] = a;
+ #pragma omp scan exclusive (a) /* { dg-message "sorry, unimplemented: '#pragma omp scan' not supported yet" } */
+ a += c[i];
+ }
+}