1! { dg-do compile }
2! { dg-options "-std=f2008ts" }
3!
4! Contributed by Reinhold Bader
5!
6use iso_c_binding
7type, bind(C) :: cstruct
8  integer :: i
9end type
10interface
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
17end
18