URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [default_initialization.f90] - Rev 816
Compare with Previous | Blame | View Log
!! { dg-do compile }! PR 20845!! In ISO/IEC 1539-1:1997(E), 4th constraint in section 11.3:!! If an object of a type for which component-initialization is specified! (R429) appears in the specification-part of a module and does not have! the ALLOCATABLE or POINTER attribute, the object shall have the SAVE! attribute.!module badimplicit nonetype default_initializationinteger :: x = 42end type default_initializationtype (default_initialization) t ! { dg-error "default initialization" }end module bad! { dg-final { cleanup-modules "bad" } }
