PR ipa/83051
[official-gcc.git] / gcc / testsuite / gfortran.dg / bind_c_procs_2.f90
blobd3e751c3dc5e4b3bd3ccd93e62792dd7dc87ef6f
1 ! { dg-do compile }
3 ! PR 59023: [4.9 regression] ICE in gfc_search_interface with BIND(C)
5 ! Contributed by Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7 type t
8 integer hidden
9 end type
11 contains
13 subroutine bar
14 type(t) :: toto
15 interface
16 integer function helper() bind(c)
17 end function
18 end interface
19 toto = t(helper())
20 end subroutine
22 end