hppa64: Fix fmt_f_default_field_width_3.f90 and fmt_g_default_field_width_3.f90
[official-gcc.git] / gcc / testsuite / gfortran.dg / bind_c_procs_4.f90
blob407d8bb9afc82ab2166e7806cd9a76d36583477f
1 ! { dg-do compile }
2 ! PR fortran/95375 - ICE in add_use_op
3 ! Contributed by G.Steinmetz
5 function f() result(n) bind(c) ! { dg-error "not C interoperable" }
6 class(*), allocatable :: n
7 end
8 program p
9 interface
10 function f() result(n) bind(c)
11 integer :: n
12 end
13 end interface
14 if ( f() /= 0 ) stop
15 end
17 ! { dg-prune-output "Type mismatch" }