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