annotate gcc/testsuite/gfortran.dg/pr68318_2.f90 @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
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 ! PR fortran/68318
kono
parents:
diff changeset
3 ! Original code submitted by Gerhard Steinmetz
kono
parents:
diff changeset
4 ! <gerhard dot steinmetz dot fortran at t-online dot de>
kono
parents:
diff changeset
5 !
kono
parents:
diff changeset
6 module m1
kono
parents:
diff changeset
7 implicit none
kono
parents:
diff changeset
8 contains
kono
parents:
diff changeset
9 subroutine s1
kono
parents:
diff changeset
10 entry e
kono
parents:
diff changeset
11 end
kono
parents:
diff changeset
12 end module
kono
parents:
diff changeset
13
kono
parents:
diff changeset
14 module m2
kono
parents:
diff changeset
15 use m1 ! { dg-error "(2)" }
kono
parents:
diff changeset
16 implicit none
kono
parents:
diff changeset
17 contains
kono
parents:
diff changeset
18 subroutine s2
kono
parents:
diff changeset
19 entry e ! { dg-error "is already defined" }
kono
parents:
diff changeset
20 end
kono
parents:
diff changeset
21 end module
kono
parents:
diff changeset
22 ! { dg-prune-output "Cannot change attribute" }