diff options
author | Thomas Koenig <tkoenig@gcc.gnu.org> | 2018-11-01 11:56:26 +0000 |
---|---|---|
committer | Thomas Koenig <tkoenig@gcc.gnu.org> | 2018-11-01 11:56:26 +0000 |
commit | 45f159a0a036544bf50ada7bb7927c78d3b2cfb5 (patch) | |
tree | ed07703a6f358aef3ce912ec831117e5045aea42 /gcc | |
parent | 508da9f932741f7273cfd6bf22829bfefe01e7e8 (diff) | |
download | gcc-45f159a0a036544bf50ada7bb7927c78d3b2cfb5.zip gcc-45f159a0a036544bf50ada7bb7927c78d3b2cfb5.tar.gz gcc-45f159a0a036544bf50ada7bb7927c78d3b2cfb5.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/gfortran.dg/bind_c_usage_32.f90 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/bind_c_usage_32.f90 b/gcc/testsuite/gfortran.dg/bind_c_usage_32.f90 new file mode 100644 index 0000000..c10b0ab --- /dev/null +++ b/gcc/testsuite/gfortran.dg/bind_c_usage_32.f90 @@ -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 + + |