2014-01-30 Alangi Derick <alangiderick@gmail.com>
[official-gcc.git] / gcc / testsuite / gfortran.dg / gomp / pr41344.f
blob66ae8b35d5b672b4043f53322f101b665c5d7ed1
1 subroutine xrotate(nerr)
3 common /dfm/ndfl
5 *$omp parallel private(ix)
6 ix = 0
7 *$omp do
8 do i=1,ndfl
9 ix = ix + 1
10 if (ix.gt.5) go to 9000 ! { dg-error "invalid (exit|branch)" }
11 enddo
12 *$omp end do
13 *$omp end parallel
15 9000 continue
16 end