re PR fortran/46020 (Improve error string for BIND(C) diagnostic for len>1 character return type)

2018-11-01  Thomas Koenig  <tkoenig@gcc.gnu.org>

    PR fortran/46020
    * gfortran.dg/bind_c_usage_32.f90: Really commit.

From-SVN: r265717
This commit is contained in:
Thomas Koenig 2018-11-01 11:56:26 +00:00
parent 508da9f932
commit 45f159a0a0

View File

@ -0,0 +1,13 @@
! { dg-do compile }
! PR 46020 - check for clear error message
! { dg-options "" }
FUNCTION F_X(A) bind(c,name='F_X') ! { dg-error "must have length 1" }
CHARACTER*(*) F_X
END FUNCTION
FUNCTION F_Y(A) bind(c,name='F_Y') ! { dg-error "must have length 1" }
CHARACTER*(2) F_Y
END FUNCTION