From 1bc5aee63eb72b341f506ad058502cd0361f0d10 Mon Sep 17 00:00:00 2001 From: Ben Cheng Date: Tue, 25 Mar 2014 22:37:19 -0700 Subject: Initial checkin of GCC 4.9.0 from trunk (r208799). Change-Id: I48a3c08bb98542aa215912a75f03c0890e497dba --- gcc-4.9/gcc/testsuite/gfortran.dg/c_ptr_tests_8.f03 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 gcc-4.9/gcc/testsuite/gfortran.dg/c_ptr_tests_8.f03 (limited to 'gcc-4.9/gcc/testsuite/gfortran.dg/c_ptr_tests_8.f03') diff --git a/gcc-4.9/gcc/testsuite/gfortran.dg/c_ptr_tests_8.f03 b/gcc-4.9/gcc/testsuite/gfortran.dg/c_ptr_tests_8.f03 new file mode 100644 index 000000000..3b99ee8bb --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gfortran.dg/c_ptr_tests_8.f03 @@ -0,0 +1,20 @@ +! { dg-do run } +! { dg-additional-sources c_ptr_tests_8_funcs.c } +program main +use iso_c_binding, only: c_ptr +implicit none +interface + function create() bind(c) + use iso_c_binding, only: c_ptr + type(c_ptr) :: create + end function create + subroutine show(a) bind(c) + import :: c_ptr + type(c_ptr), VALUE :: a + end subroutine show +end interface + +type(c_ptr) :: ptr +ptr = create() +call show(ptr) +end program main -- cgit v1.2.3