2014-01-30 Alangi Derick <alangiderick@gmail.com>
[official-gcc.git] / gcc / testsuite / gfortran.dg / gomp / pr43711.f90
blobe47e586ea65e6b41ec0b725d7aa391938f0ee552
1 ! { dg-do compile }
2 ! { dg-options "-fopenmp" }
4 ! PR fortran/43711 uninformative error message for two 'nowait' in omp statement
5 ! Contributed by Bill Long <longb AT cray DOT com>
7 program NF03_2_5_2_1a
8 !$omp parallel
9 !$omp sections
10 !$omp section
11 print *, 'FAIL'
12 !$omp section
13 print *, 'FAIL'
14 !$omp end sections nowait nowait ! { dg-error "Unexpected junk" }
15 !$omp end parallel
16 end program NF03_2_5_2_1a
18 ! { dg-excess-errors "Unexpected" }