re PR fortran/46020 (Improve error string for BIND(C) diagnostic for len>1 character...
authorThomas Koenig <tkoenig@gcc.gnu.org>
Thu, 1 Nov 2018 18:41:28 +0000 (18:41 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Thu, 1 Nov 2018 18:41:28 +0000 (18:41 +0000)
2018-11-01  Thomas Koenig  <tkoenig@gcc.gnu.org>

    PR fortran/46020
    * gfortran.dg/bind_c_18.f90: Adjust error message.

From-SVN: r265727

gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/bind_c_18.f90

index e85b37cdb8a7a501fbeaeca5deae5ff782dfba9f..4bdd6ac7184f880543f4f31627d12bdc15f539a3 100644 (file)
@@ -1,3 +1,8 @@
+2018-11-01  Thomas Koenig  <tkoenig@gcc.gnu.org>
+
+       PR fortran/46020
+       * gfortran.dg/bind_c_18.f90: Adjust error message.
+
 2018-11-01  Marek Polacek  <polacek@redhat.com>
 
        * g++.dg/cpp1z/constexpr-lambda22.C: New test,
index 6360f01aaccadae4d075f2e2ef8bbe573ca1dbf9..b5d52704ea6f4080d6becd00d062a9894612f1ad 100644 (file)
@@ -11,7 +11,7 @@ implicit none
     END FUNCTION
   END INTERFACE
   INTERFACE 
-    FUNCTION two() BIND(C,name="two") RESULT(r) ! { dg-error "cannot be a character string" }
+    FUNCTION two() BIND(C,name="two") RESULT(r) ! { dg-error "must have length 1" }
       USE iso_c_binding
       CHARACTER(kind=C_CHAR,len=2) :: r
     END FUNCTION