URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [structure_constructor_7.f03] - Rev 694
Compare with Previous | Blame | View Log
! { dg-do compile }! Test for errors when excess components are given for a structure-constructor.PROGRAM testIMPLICIT NONE! Structure of basic data typesTYPE :: basics_tINTEGER :: iREAL :: r = 1.5END TYPE basics_tTYPE(basics_t) :: basicsbasics = basics_t (42, 1.5, 1000) ! { dg-error "Too many components" }basics = basics_t (42, xxx = 1000) ! { dg-error "is not a member" }END PROGRAM test
