gcc/testsuite/gfortran.dg/bind_c_usage_27.f90
raw| 1 | ! { dg-do compile } |
| 2 | ! { dg-options "-std=f2008ts" } |
| 3 | ! |
| 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 |