aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/use_16.f90
blob: 7b22c415033d1dcbd787e017a4e8616b75e6219e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
! { dg-do compile }
!
! PR fortran/31600
!
module a
implicit none
contains
  integer function bar()
    bar = 42
  end function
end module a

use a ! { dg-error "Symbol 'bar' at \\(1\\) conflicts with symbol from module 'a'" }
implicit none
integer :: bar ! { dg-error "Symbol 'bar' at \\(1\\) conflicts with symbol from module 'a'" }
end