URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [import6.f90] - Rev 774
Go to most recent revision | Compare with Previous | Blame | View Log
! { dg-do compile }! Tests the fix for PR32827, in which IMPORT :: my_type put the! symbol into the interface namespace, thereby generating an error! when the declaration of 'x' is compiled.!! Contributed by Douglas Wells <sysmaint@contek.com>!subroutine func1(param)type :: my_typeinteger :: dataend type my_typetype(my_type) :: paramparam%data = 99end subroutine func1subroutine func2(param)type :: my_typeinteger :: dataend type my_typetype(my_type) :: paramparam%data = 21end subroutine func2type :: my_typeinteger :: dataend type my_typeinterfacesubroutine func1(param)import :: my_typetype(my_type) :: paramend subroutine func1end interfaceinterfacesubroutine func2(param)importtype(my_type) :: paramend subroutine func2end interfacetype(my_type) :: xcall func1(x)print *, x%datacall func2(x)print *, x%dataend
Go to most recent revision | Compare with Previous | Blame | View Log
