Rebase.
[official-gcc.git] / gcc / testsuite / gfortran.dg / warn_unused_var_2.f90
blob5dcf4991d244610071957f662916dbd9d7506368
1 ! { dg-do compile }
2 ! { dg-options "-Wunused" }
4 ! PR fortran/31461
6 ! Contributed by Vivek Rao.
9 module util_mod
10 integer :: i,j
11 end module util_mod
13 program main
14 use util_mod, only: i,j ! { dg-warning "Unused module variable .i. which has been explicitly imported" }
15 j = 1
16 print*,"j=",j
17 end program main