Commit 45f159a0 by Thomas Koenig

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
parent 508da9f9
! { 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment