2011-02-15 Tobias Burnus <burnus@net-b.de>
[official-gcc.git] / gcc / testsuite / gfortran.dg / ambiguous_reference_2.f90
blob3ffaa14591db9e4bec57fb7f633106ebb1ae84fd
1 ! { dg-do compile }
3 ! PR 39930: Bogus error: ambiguous reference
5 ! Contributed by Janus Weil <janus@gcc.gnu.org>
7 module a1
8 contains
9 subroutine myRoutine
10 end subroutine
11 end module
13 module a2
14 contains
15 subroutine myRoutine
16 end subroutine
17 end module
19 module b
20 contains
22 subroutine otherRoutine
23 use a1
24 use a2
25 end subroutine
27 subroutine myRoutine
28 end subroutine myRoutine ! this is not ambiguous !
30 end module
32 ! { dg-final { cleanup-modules "a1 a2 b" } }