URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [constructor_3.f90] - Rev 694
Compare with Previous | Blame | View Log
! { dg-do run }!! PR fortran/39427!! Check constructor functionality.!!module minterface consprocedure cons42end interface conscontainsinteger function cons42()cons42 = 42end function cons42end module mmodule m2type consinteger :: j = -1end type consinterface consprocedure consTend interface conscontainstype(cons) function consT(k)integer :: kconsT%j = k**2end function consTend module m2use muse m2, only: consimplicit nonetype(cons) :: xinteger :: kx = cons(3)k = cons()if (x%j /= 9) call abort ()if (k /= 42) call abort ()!print *, x%j!print *, kend! { dg-final { cleanup-modules "m m2" } }
