fix pr/45972
[official-gcc.git] / gcc / testsuite / gfortran.dg / gomp / pr29759.f90
blobb723eeb3c76e38cd0b0761ccb27a8ad713a10624
1 ! PR fortran/29759
2 ! { dg-do compile }
4 PROGRAM test_omp
5 !$OMP PARALLEL &
6 !$OMP NUM_THREADS(2)
7 !$OMP END PARALLEL
9 !$OMP PARALLEL &
10 !$OMP & NUM_THREADS(2)
11 !$OMP END PARALLEL
13 !$OMP PARALLEL &
15 !$OMP NUM_THREADS(2)
16 !$OMP END PARALLEL
18 !$OMP PARALLEL &
20 !$OMP & NUM_THREADS(2)
21 !$OMP END PARALLEL
24 !$OMP PARALLEL & ! { dg-error "Unclassifiable OpenMP" }
25 !$ NUM_THREADS(2) ! { dg-error "Unclassifiable|Invalid character" }
26 !$OMP END PARALLEL ! { dg-error "Unexpected" }
28 !$OMP PARALLEL & ! { dg-error "Unclassifiable OpenMP" }
29 !$ & NUM_THREADS(2) ! { dg-error "Unclassifiable|Invalid character" }
30 !$OMP END PARALLEL ! { dg-error "Unexpected" }
32 !$OMP PARALLEL & ! { dg-error "Unclassifiable OpenMP" }
34 !$ NUM_THREADS(2) ! { dg-error "Unclassifiable|Invalid character" }
35 !$OMP END PARALLEL ! { dg-error "Unexpected" }
37 !$OMP PARALLEL & ! { dg-error "Unclassifiable OpenMP" }
39 !$ & NUM_THREADS(2) ! { dg-error "Unclassifiable|Invalid character" }
40 !$OMP END PARALLEL ! { dg-error "Unexpected" }
42 END PROGRAM