summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/gomp/pr29759.f90
blob: b723eeb3c76e38cd0b0761ccb27a8ad713a10624 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
! PR fortran/29759
! { dg-do compile }

PROGRAM test_omp
!$OMP PARALLEL &
!$OMP NUM_THREADS(2)
!$OMP END PARALLEL

!$OMP PARALLEL &
!$OMP & NUM_THREADS(2)
!$OMP END PARALLEL

!$OMP PARALLEL &
!
!$OMP NUM_THREADS(2)
!$OMP END PARALLEL

!$OMP PARALLEL &
!
!$OMP & NUM_THREADS(2)
!$OMP END PARALLEL


!$OMP PARALLEL &		! { dg-error "Unclassifiable OpenMP" }
!$    NUM_THREADS(2)		! { dg-error "Unclassifiable|Invalid character" }
!$OMP END PARALLEL		! { dg-error "Unexpected" }

!$OMP PARALLEL &		! { dg-error "Unclassifiable OpenMP" }
!$    & NUM_THREADS(2)		! { dg-error "Unclassifiable|Invalid character" }
!$OMP END PARALLEL		! { dg-error "Unexpected" }

!$OMP PARALLEL &		! { dg-error "Unclassifiable OpenMP" }
!
!$    NUM_THREADS(2)		! { dg-error "Unclassifiable|Invalid character" }
!$OMP END PARALLEL		! { dg-error "Unexpected" }

!$OMP PARALLEL &		! { dg-error "Unclassifiable OpenMP" }
!
!$    & NUM_THREADS(2)		! { dg-error "Unclassifiable|Invalid character" }
!$OMP END PARALLEL		! { dg-error "Unexpected" }

END PROGRAM