2017-02-20 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / bind_c_usage_21.f90
blob3ed8dc90a4612a2b2c0a91e6fa82744c1fd5e721
1 ! { dg-do compile }
3 ! PR fortran/45211
5 ! Contributed by Scot Breitenfeld
7 module m
8 contains
9 FUNCTION liter_cb(link_info) bind(C)
10 USE ISO_C_BINDING
11 IMPLICIT NONE
13 INTEGER(c_int) liter_cb
15 TYPE, bind(C) :: info_t
16 INTEGER(c_int) :: type
17 END TYPE info_t
19 TYPE(info_t) :: link_info
21 liter_cb = 0
22 END FUNCTION liter_cb
23 end module m