Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gfortran.dg/same_name_2.f90 @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 ! { dg-do compile } |
2 ! Tests the fix for PR27701, in which two same name procedures | |
3 ! were not diagnosed if they had no arguments. | |
4 ! | |
5 ! Contributed by Arjen Markus <arjen.markus@wldelft.nl> | |
6 ! | |
7 module aha | |
8 contains | |
9 subroutine aa ! { dg-error "Procedure" } | |
10 write(*,*) 'AA' | |
11 end subroutine aa | |
12 subroutine aa ! { dg-error "is already defined" } | |
131 | 13 write(*,*) 'BB' ! { dg-error "Unexpected WRITE statement in CONTAINS section" } |
14 end subroutine aa ! { dg-error "Expecting END MODULE statement" } | |
111 | 15 end module |