URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [binding_label_tests_16.f03] - Rev 329
Go to most recent revision | Compare with Previous | Blame | View Log
! { dg-do run }
! Verify that the variables 'a' in both modules don't collide.
module m
use iso_c_binding
implicit none
integer(c_int), save, bind(C, name="") :: a = 5
end module m
module n
use iso_c_binding
implicit none
integer(c_int), save, bind(C,name="") :: a = -5
end module n
program prog
use m
use n, b=>a
implicit none
print *, a, b
if (a /= 5 .or. b /= -5) call abort()
end program prog
! { dg-final { cleanup-modules "m n" } }
Go to most recent revision | Compare with Previous | Blame | View Log