diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gfortran.dg/bind_c_usage_27.f90')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gfortran.dg/bind_c_usage_27.f90 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gfortran.dg/bind_c_usage_27.f90 b/gcc-4.9/gcc/testsuite/gfortran.dg/bind_c_usage_27.f90 new file mode 100644 index 000000000..a1b0fcc62 --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gfortran.dg/bind_c_usage_27.f90 @@ -0,0 +1,17 @@ +! { dg-do compile } +! { dg-options "-std=f2008ts" } +! +! Contributed by Reinhold Bader +! +use iso_c_binding +type, bind(C) :: cstruct + integer :: i +end type +interface + subroutine psub(this, that) bind(c, name='Psub') + import :: c_float, cstruct + real(c_float), pointer :: this(:) + type(cstruct), allocatable :: that(:) + end subroutine psub + end interface +end |