Fix warnings occured during profiledboostrap on
[official-gcc.git] / gcc / testsuite / gfortran.dg / module_variable_1.f90
blobfcf6df8d4ab42afa81972503c586b09d28e2033a
1 ! { dg-do compile }
2 ! { dg-options "-Wall" }
3 module foo
4 integer, private :: i ! { dg-warning "Unused PRIVATE" }
5 integer, private :: j = 0
6 contains
7 subroutine bar
8 j = j + 1
9 end subroutine bar
10 end module foo
12 module bar
13 private
14 integer :: i ! { dg-warning "Unused PRIVATE" }
15 end module bar