PR target/83368
[official-gcc.git] / gcc / testsuite / gfortran.dg / use_16.f90
blob7b22c415033d1dcbd787e017a4e8616b75e6219e
1 ! { dg-do compile }
3 ! PR fortran/31600
5 module a
6 implicit none
7 contains
8 integer function bar()
9 bar = 42
10 end function
11 end module a
13 use a ! { dg-error "Symbol 'bar' at \\(1\\) conflicts with symbol from module 'a'" }
14 implicit none
15 integer :: bar ! { dg-error "Symbol 'bar' at \\(1\\) conflicts with symbol from module 'a'" }
16 end