summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/gomp/for-5.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/gomp/for-5.c')
-rw-r--r--gcc/testsuite/gcc.dg/gomp/for-5.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/gomp/for-5.c b/gcc/testsuite/gcc.dg/gomp/for-5.c
new file mode 100644
index 00000000000..6d9722a97f4
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/gomp/for-5.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(guided)
+ for (i = 0; i < n; ++i)
+ bar(i);
+}
+
+/* { dg-final { scan-tree-dump-times "GOMP_loop_guided_start" 1 "lower" } } */
+/* { dg-final { scan-tree-dump-times "GOMP_loop_guided_next" 1 "lower" } } */
+/* { dg-final { cleanup-tree-dump "lower" } } */