aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/coarray_lock_2.f90
blob: 243024084a10774a0bf22d55b644f7fb8e877383 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
! { dg-do compile }
! { dg-options "-fcoarray=single -std=f2003" }
!
! LOCK/UNLOCK intrinsics
!
! PR fortran/18918
!
integer :: a[*] ! { dg-error "Fortran 2008: Coarray declaration" }
integer :: s
character(len=3) :: c
logical :: bool

LOCK (a, stat=s, acquired_lock=bool, errmsg=c) ! { dg-error "Fortran 2008: LOCK statement" }
UNLOCK (a, stat=s, errmsg=c) ! { dg-error "Fortran 2008: UNLOCK statement" }
end