PR target/83368
[official-gcc.git] / gcc / testsuite / gfortran.dg / bind_c_usage_27.f90
bloba1b0fcc62031988fbec6e61aaadcde884fc75e34
1 ! { dg-do compile }
2 ! { dg-options "-std=f2008ts" }
4 ! Contributed by Reinhold Bader
5 !
6 use iso_c_binding
7 type, bind(C) :: cstruct
8 integer :: i
9 end type
10 interface
11 subroutine psub(this, that) bind(c, name='Psub')
12 import :: c_float, cstruct
13 real(c_float), pointer :: this(:)
14 type(cstruct), allocatable :: that(:)
15 end subroutine psub
16 end interface
17 end