2009-10-05 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / module_private_1.f90
blob7d854a1a9517d4e364fac0af2ba0af135d20b0df
1 ! { dg-do compile }
2 ! { dg-options "-fmodule-private" }
3 module bar
4 implicit none
5 public :: i
6 integer :: i
7 end module bar
9 module foo
10 implicit none
11 integer :: j
12 end module foo
14 program main
15 use bar, only : i
16 use foo, only : j ! { dg-error "not found in module" }
17 i = 1
18 j = 1
19 print *, i, j
20 end program main
22 ! { dg-final { cleanup-modules "bar foo" } }