From e44ecbfd9fde1d4d715c30f584f7cc8e535c749f Mon Sep 17 00:00:00 2001 From: Jerry DeLisle Date: Wed, 29 Jun 2016 19:04:58 +0000 Subject: [PATCH] re PR fortran/71686 (ICE on broken character continuation) 2016-06-29 Jerry DeLisle PR fortran/71686 * gfortran.dg/unexpected_eof_2.f90: New test. * gfortran.dg/unexpected_eof_3.f90: New test. From-SVN: r237861 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gfortran.dg/unexpected_eof_2.f90 | 7 +++++++ gcc/testsuite/gfortran.dg/unexpected_eof_3.f90 | 6 ++++++ 3 files changed, 19 insertions(+) create mode 100644 gcc/testsuite/gfortran.dg/unexpected_eof_2.f90 create mode 100644 gcc/testsuite/gfortran.dg/unexpected_eof_3.f90 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index db7cee284ed..83cacd4d466 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2016-06-29 Jerry DeLisle + + PR fortran/71686 + * gfortran.dg/unexpected_eof_2.f90: New test. + * gfortran.dg/unexpected_eof_3.f90: New test. + 2016-06-29 Jim Wilson * gcc.dg/asr_div1.c: Add aarch64 specific dg-options. diff --git a/gcc/testsuite/gfortran.dg/unexpected_eof_2.f90 b/gcc/testsuite/gfortran.dg/unexpected_eof_2.f90 new file mode 100644 index 00000000000..1ced9bd0e64 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/unexpected_eof_2.f90 @@ -0,0 +1,7 @@ +! { dg-do compile } +! PR71686 +program p + character(8) :: z + z = 'abc& ! { dg-error "Unterminated character constant" } +!end +! { dg-error "Unexpected end of file" "" { target *-*-* } 0 } diff --git a/gcc/testsuite/gfortran.dg/unexpected_eof_3.f90 b/gcc/testsuite/gfortran.dg/unexpected_eof_3.f90 new file mode 100644 index 00000000000..d3f4d5d8a89 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/unexpected_eof_3.f90 @@ -0,0 +1,6 @@ +! { dg-do compile } +! PR71686 +program p + character(8) :: z = 'abc& ! { dg-error "Unterminated character constant" } +!end +! { dg-error "Unexpected end of file" "" { target *-*-* } 0 } -- 2.30.2