[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gfortran.dg / proc_decl_24.f90
blob01cbb7c37c10e9951254005b630e8234770d5461
1 ! { dg-do compile }
3 ! Contributed by James van Buskirk
5 ! http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/44d572766bce0e6f/
7 use iso_c_binding
8 implicit none
10 abstract interface
11 subroutine all_subs(x,y) bind(C)
12 use iso_c_binding
13 real(c_float) :: x,y
14 end subroutine all_subs
15 end interface
17 procedure(all_subs) :: sub
18 type(C_FUNPTR) :: s
20 s = c_funloc (sub)
22 end