c: Fix up pointer types to may_alias structures [PR114493]
[official-gcc.git] / gcc / testsuite / gfortran.dg / use_15.f90
blob9722db4ddb351074e1b2597e6b89505ce3a28a43
1 ! { dg-do compile }
3 ! PR fortran/34657
5 module test_mod
6 interface
7 subroutine my_sub (a)
8 real a
9 end subroutine
10 end interface
11 end module
13 subroutine my_sub (a)
14 use test_mod ! { dg-error "is also the name of the current program unit" }
15 real a
16 print *, a
17 end subroutine
20 module test_mod2
21 integer :: my_sub2
22 end module
24 subroutine my_sub2 (a)
25 use test_mod2 ! { dg-error "is also the name of the current program unit" }
26 real a
27 print *, a
28 end subroutine
31 subroutine my_sub3 (a) ! { dg-error "\(1\)" }
32 use test_mod2, my_sub3 => my_sub2 ! { dg-error "conflicts with the rename" }
33 real a
34 print *, a
35 end subroutine
37 END ! { dg-error "is an ambiguous reference" }