diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/gomp/for-8.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/gomp/for-8.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/gomp/for-8.c b/gcc/testsuite/gcc.dg/gomp/for-8.c new file mode 100644 index 00000000000..c1386ce4a41 --- /dev/null +++ b/gcc/testsuite/gcc.dg/gomp/for-8.c @@ -0,0 +1,17 @@ +/* { dg-do compile } */ +/* { dg-options "-fopenmp -fdump-tree-lower" } */ + +extern void bar(int); + +void foo (int n) +{ + int i; + + #pragma omp for schedule(dynamic) ordered + for (i = 0; i < n; ++i) + bar(i); +} + +/* { dg-final { scan-tree-dump-times "GOMP_loop_ordered_dynamic_start" 1 "lower" } } */ +/* { dg-final { scan-tree-dump-times "GOMP_loop_ordered_dynamic_next" 1 "lower" } } */ +/* { dg-final { cleanup-tree-dump "lower" } } */ |