2014-01-30 Alangi Derick <alangiderick@gmail.com>
[official-gcc.git] / gcc / testsuite / gfortran.dg / gomp / do-1.f90
bloba9c9cf11df6ccaf621f385450929e93b23b17338
1 ! { dg-do compile }
2 ! { dg-options "-O -fopenmp -fdump-tree-omplower" }
4 subroutine foo (i, j, k, s, a)
5 integer :: i, j, k, s, a(100), l
6 !$omp parallel do schedule (dynamic, s * 2)
7 do 100, l = j, k
8 100 a(l) = i
9 !$omp parallel do schedule (dynamic, s * 2)
10 do 101, l = j, k, 3
11 101 a(l) = i + 1
12 end subroutine foo
14 subroutine bar (i, j, k, s, a)
15 integer :: i, j, k, s, a(100), l
16 !$omp parallel do schedule (guided, s * 2)
17 do 100, l = j, k
18 100 a(l) = i
19 !$omp parallel do schedule (guided, s * 2)
20 do 101, l = j, k, 3
21 101 a(l) = i + 1
22 end subroutine bar
24 ! { dg-final { scan-tree-dump-times "GOMP_parallel_loop_dynamic_start" 2 "omplower" { xfail *-*-* } } }
25 ! { dg-final { scan-tree-dump-times "GOMP_parallel_loop_guided_start" 2 "omplower" { xfail *-*-* } } }
26 ! { dg-final { cleanup-tree-dump "omplower" } }