URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [unreferenced_use_assoc_1.f90] - Rev 694
Compare with Previous | Blame | View Log
! { dg-do compile }! Tests the fix for PR31424.!module InternalCompilerErrortype Byteprivatecharacter(len=1) :: singleByteend typetype (Byte) :: BytesPrototype(1)type UserTypereal :: rend typecontainsfunction UserTypeToBytes(user) result (bytes)type(UserType) :: usertype(Byte) :: bytes(size(transfer(user, BytesPrototype)))bytes = transfer(user, BytesPrototype)end functionsubroutine DoSomethingWithBytes(bytes)type(Byte), intent(in) :: bytes(:)end subroutineend moduleprogram mainuse InternalCompilerErrortype (UserType) :: user! The following line caused the ICEcall DoSomethingWithBytes( UserTypeToBytes(user) )end program! { dg-final { cleanup-modules "internalcompilererror" } }
