URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [equiv_constraint_5.f90] - Rev 816
Compare with Previous | Blame | View Log
! { dg-do compile }! { dg-options "-O0" }! PR20902 - Structure with default initializer cannot be equivalence memeber.! Contributed by Joost VandeVondele <jv244@cam.ac.uk>TYPE T1sequenceinteger :: i=1END TYPE T1TYPE T2sequenceinteger :: i ! drop original initializer to pick up error below.END TYPE T2TYPE(T1) :: a1TYPE(T2) :: a2EQUIVALENCE(a1,a2) ! { dg-error "initializer cannot be an EQUIVALENCE" }write(6,*) a1,a2END
