annotate gcc/testsuite/gfortran.dg/asynchronous_1.f90 @ 132:d34655255c78

update gcc-8.2
author mir3636
date Thu, 25 Oct 2018 10:21:07 +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 !
kono
parents:
diff changeset
3 ! PR/fortran 25829
kono
parents:
diff changeset
4 !
kono
parents:
diff changeset
5 ! Check parsing and checking of ASYNCHRONOUS
kono
parents:
diff changeset
6 !
kono
parents:
diff changeset
7 type(t) function func0()
kono
parents:
diff changeset
8 asynchronous :: a
kono
parents:
diff changeset
9 integer, asynchronous:: b
kono
parents:
diff changeset
10 allocatable :: c
kono
parents:
diff changeset
11 volatile :: d
kono
parents:
diff changeset
12 type t
kono
parents:
diff changeset
13 sequence
kono
parents:
diff changeset
14 integer :: i = 5
kono
parents:
diff changeset
15 end type t
kono
parents:
diff changeset
16 end function func0
kono
parents:
diff changeset
17
kono
parents:
diff changeset
18 integer function func()
kono
parents:
diff changeset
19 asynchronous :: func
kono
parents:
diff changeset
20 integer, asynchronous:: b
kono
parents:
diff changeset
21 allocatable :: c
kono
parents:
diff changeset
22 volatile :: func
kono
parents:
diff changeset
23 type t
kono
parents:
diff changeset
24 sequence
kono
parents:
diff changeset
25 integer :: i = 5
kono
parents:
diff changeset
26 end type t
kono
parents:
diff changeset
27 end function func
kono
parents:
diff changeset
28
kono
parents:
diff changeset
29 function func2() result(res)
kono
parents:
diff changeset
30 volatile res
kono
parents:
diff changeset
31 asynchronous res
kono
parents:
diff changeset
32 end function func2
kono
parents:
diff changeset
33
kono
parents:
diff changeset
34 subroutine sub()
kono
parents:
diff changeset
35 asynchronous sub ! { dg-error "SUBROUTINE attribute conflicts with ASYNCHRONOUS" }
kono
parents:
diff changeset
36 volatile sub ! { dg-error "SUBROUTINE attribute conflicts with VOLATILE" }
kono
parents:
diff changeset
37 end subroutine sub
kono
parents:
diff changeset
38
kono
parents:
diff changeset
39 program main
kono
parents:
diff changeset
40 asynchronous main ! { dg-error "PROGRAM attribute conflicts with ASYNCHRONOUS" }
kono
parents:
diff changeset
41 volatile main ! { dg-error "PROGRAM attribute conflicts with VOLATILE" }
kono
parents:
diff changeset
42 end program main