OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [warn_unused_var_2.f90] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! { dg-options "-Wunused" }
3
!
4
! PR fortran/31461
5
!
6
! Contributed by Vivek Rao.
7
!
8
 
9
module util_mod
10
  integer :: i,j
11
end module util_mod
12
 
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
18
 
19
! { dg-final { cleanup-modules "util_mod" } }

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.