annotate gcc/testsuite/gfortran.dg/coarray_lock_2.f90 @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ! { dg-do compile }
kono
parents:
diff changeset
2 ! { dg-options "-fcoarray=single -std=f2003" }
kono
parents:
diff changeset
3 !
kono
parents:
diff changeset
4 ! LOCK/UNLOCK intrinsics
kono
parents:
diff changeset
5 !
kono
parents:
diff changeset
6 ! PR fortran/18918
kono
parents:
diff changeset
7 !
kono
parents:
diff changeset
8 integer :: a[*] ! { dg-error "Fortran 2008: Coarray declaration" }
kono
parents:
diff changeset
9 integer :: s
kono
parents:
diff changeset
10 character(len=3) :: c
kono
parents:
diff changeset
11 logical :: bool
kono
parents:
diff changeset
12
kono
parents:
diff changeset
13 LOCK (a, stat=s, acquired_lock=bool, errmsg=c) ! { dg-error "Fortran 2008: LOCK statement" }
kono
parents:
diff changeset
14 UNLOCK (a, stat=s, errmsg=c) ! { dg-error "Fortran 2008: UNLOCK statement" }
kono
parents:
diff changeset
15 end