annotate gcc/testsuite/gfortran.dg/dec_static_4.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 ! { dg-options "-fdec-static" }
kono
parents:
diff changeset
3 !
kono
parents:
diff changeset
4 ! Check for conflicts between STATIC/AUTOMATIC and other attributes.
kono
parents:
diff changeset
5 !
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 function s(a, b, x, y) result(z)
kono
parents:
diff changeset
8 implicit none
kono
parents:
diff changeset
9 integer, automatic, intent(IN) :: a ! { dg-error "DUMMY attribute conflicts" }
kono
parents:
diff changeset
10 integer, static, intent(IN) :: b ! { dg-error "DUMMY attribute conflicts" }
kono
parents:
diff changeset
11 integer, intent(OUT) :: x, y
kono
parents:
diff changeset
12 automatic :: x ! { dg-error "DUMMY attribute conflicts" }
kono
parents:
diff changeset
13 static :: y ! { dg-error "DUMMY attribute conflicts" }
kono
parents:
diff changeset
14
kono
parents:
diff changeset
15 automatic ! { dg-error "Expected entity-list in AUTOMATIC statement" }
kono
parents:
diff changeset
16 automatic :: ! { dg-error "Expected entity-list in AUTOMATIC statement" }
kono
parents:
diff changeset
17 static ! { dg-error "Expected entity-list in STATIC statement" }
kono
parents:
diff changeset
18 static :: ! { dg-error "Expected entity-list in STATIC statement" }
kono
parents:
diff changeset
19
kono
parents:
diff changeset
20 integer, automatic :: auto1, auto2
kono
parents:
diff changeset
21 integer, static :: static1, static2
kono
parents:
diff changeset
22 integer :: auto3, static3
kono
parents:
diff changeset
23 automatic :: auto3
kono
parents:
diff changeset
24 static :: static3
kono
parents:
diff changeset
25
kono
parents:
diff changeset
26 common /c1/ auto1, auto2 ! { dg-error "COMMON attribute conflicts" }
kono
parents:
diff changeset
27 common /c2/ static1, static2 ! { dg-error "COMMON attribute conflicts" }
kono
parents:
diff changeset
28 common /c3/ auto3, static3 ! { dg-error "COMMON attribute conflicts" }
kono
parents:
diff changeset
29
kono
parents:
diff changeset
30 integer, static :: z ! { dg-error "RESULT attribute conflicts" }
kono
parents:
diff changeset
31 integer, automatic :: z ! { dg-error "RESULT attribute conflicts" }
kono
parents:
diff changeset
32 static :: z ! { dg-error "RESULT attribute conflicts" }
kono
parents:
diff changeset
33 automatic :: z ! { dg-error "RESULT attribute conflicts" }
kono
parents:
diff changeset
34
kono
parents:
diff changeset
35 integer, static, automatic :: o ! { dg-error "AUTOMATIC attribute conflicts" }
kono
parents:
diff changeset
36
kono
parents:
diff changeset
37 integer :: a, b, z ! fall-back decls so we don't get "no implicit type"
kono
parents:
diff changeset
38 end