URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [derived_function_interface_1.f90] - Rev 694
Compare with Previous | Blame | View Log
! { dg-do compile }! Tests the fix for PR29634, in which an ICE would occur in the! interface declaration of a function with an 'old-style' type! declaration. When fixed, it was found that the error message! was not very helpful - this was fixed.!! Contributed by Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>!module kindstype foointeger :: iend type fooend moduletype(foo) function ext_fun()use kindsext_fun%i = 1end function ext_funuse kindsinterface fun_interfacetype(foo) function fun()use kindsend function funend interfaceinterface ext_fun_interfacetype(foo) function ext_fun()use kindsend function ext_funend interfacetype(foo) :: xx = ext_fun ()print *, x%icontainstype(foo) function fun() ! { dg-error "already has an explicit interface" }end function fun ! { dg-error "Expecting END PROGRAM" }end! { dg-final { cleanup-modules "kinds" } }
