summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/gomp/combined-1.c
diff options
context:
space:
mode:
authorrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>2007-12-19 15:07:01 +0000
committerrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>2007-12-19 15:07:01 +0000
commitd1d5b0126a8ba777abe87c23e61aa8ff29571c95 (patch)
tree71c3e93e1fe02a3ad283c84b46c0746d081d3660 /gcc/testsuite/gcc.dg/gomp/combined-1.c
parentc1fb5b25cf1cfeeb4771612651d69a4feddeebac (diff)
downloadgcc-d1d5b0126a8ba777abe87c23e61aa8ff29571c95.tar.gz
* omp-low.c (build_omp_regions_1): Recognition of combined parallels
moved ... (expand_omp): ... here. * gcc.dg/gomp/combined-1.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@131064 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/gomp/combined-1.c')
-rw-r--r--gcc/testsuite/gcc.dg/gomp/combined-1.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/gomp/combined-1.c b/gcc/testsuite/gcc.dg/gomp/combined-1.c
new file mode 100644
index 00000000000..fc86a9b0e32
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/gomp/combined-1.c
@@ -0,0 +1,24 @@
+/* { dg-do compile } */
+/* { dg-options "-O1 -fopenmp -fdump-tree-final_cleanup" } */
+
+int a[10];
+int foo (void)
+{
+ int i;
+#pragma omp parallel for schedule(runtime)
+ for (i = 0; i < 10; i++)
+ a[i] = i;
+#pragma omp parallel
+#pragma omp for schedule(runtime)
+ for (i = 0; i < 10; i++)
+ a[i] = 10 - i;
+#pragma omp parallel
+ {
+#pragma omp for schedule(runtime)
+ for (i = 0; i < 10; i++)
+ a[i] = i;
+ }
+}
+
+/* { dg-final { scan-tree-dump-times "__builtin_GOMP_parallel_loop_runtime_start" 3 "final_cleanup" } } */
+/* { dg-final { cleanup-tree-dump "final_cleanup" } } */