2 ! Tests the fix for PR29634, in which an ICE would occur in the
3 ! interface declaration of a function with an 'old-style' type
4 ! declaration. When fixed, it was found that the error message
5 ! was not very helpful - this was fixed.
7 ! Contributed by Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15 type(foo
) function ext_fun()
22 interface fun_interface
23 type(foo
) function fun()
28 interface ext_fun_interface
29 type(foo
) function ext_fun()
41 type(foo
) function fun() ! { dg-error "already has an explicit interface" }
42 end function fun
! { dg-error "Expecting END PROGRAM" }