URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [binding_label_tests_16.f03] - Rev 801
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