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

update gcc-8.2
author mir3636
date Thu, 25 Oct 2018 10:21:07 +0900
parents 84e7813d76e9
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 ! Tests the fix for PR27701, in which two same name procedures
kono
parents:
diff changeset
3 ! were not diagnosed if they had no arguments.
kono
parents:
diff changeset
4 !
kono
parents:
diff changeset
5 ! Contributed by Arjen Markus <arjen.markus@wldelft.nl>
kono
parents:
diff changeset
6 !
kono
parents:
diff changeset
7 module aha
kono
parents:
diff changeset
8 contains
kono
parents:
diff changeset
9 subroutine aa ! { dg-error "Procedure" }
kono
parents:
diff changeset
10 write(*,*) 'AA'
kono
parents:
diff changeset
11 end subroutine aa
kono
parents:
diff changeset
12 subroutine aa ! { dg-error "is already defined" }
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
13 write(*,*) 'BB' ! { dg-error "Unexpected WRITE statement in CONTAINS section" }
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
14 end subroutine aa ! { dg-error "Expecting END MODULE statement" }
111
kono
parents:
diff changeset
15 end module