From: Francois-Xavier Coudert Date: Sun, 8 Jun 2014 15:28:59 +0000 (+0000) Subject: re PR fortran/38829 (Bogus BIND(C) error message) X-Git-Tag: releases/gcc-5.1.0~7020 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=000fd5b109dc9c873b4d5d86bac43c8c2c07fede;p=thirdparty%2Fgcc.git re PR fortran/38829 (Bogus BIND(C) error message) PR fortran/38829 * gfortran.dg/bind_c_usage_29.f90: New file. From-SVN: r211354 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a6913af74fd4..5873aa6bd000 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-06-07 Francois-Xavier Coudert + + PR fortran/38829 + * gfortran.dg/bind_c_usage_29.f90: New file. + 2014-06-07 Eric Botcazou * gnat.dg/opt38.adb: New test. diff --git a/gcc/testsuite/gfortran.dg/bind_c_usage_29.f90 b/gcc/testsuite/gfortran.dg/bind_c_usage_29.f90 new file mode 100644 index 000000000000..cb9909cccb21 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/bind_c_usage_29.f90 @@ -0,0 +1,15 @@ +! { dg-do compile } +! +! PR fortran/38829 +! +MODULE mExample +CONTAINS + SUBROUTINE wrapper(y_c) bind(c) + USE iso_c_binding + type, bind(c) :: ty_c + type(c_ptr) :: y_cptr + Integer(c_int) ny + end type + type(ty_c) :: y_c + END SUBROUTINE +END MODULE