re PR fortran/71686 (ICE on broken character continuation)
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Wed, 29 Jun 2016 19:04:58 +0000 (19:04 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Wed, 29 Jun 2016 19:04:58 +0000 (19:04 +0000)
2016-06-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

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
gcc/testsuite/gfortran.dg/unexpected_eof_2.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/unexpected_eof_3.f90 [new file with mode: 0644]

index db7cee284ed6ee7d20541dd3ab852b4d919a6e31..83cacd4d466f1480ff916d2951784e7e9b398376 100644 (file)
@@ -1,3 +1,9 @@
+2016-06-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
+
+       PR fortran/71686
+       * gfortran.dg/unexpected_eof_2.f90: New test.
+       * gfortran.dg/unexpected_eof_3.f90: New test.
+
 2016-06-29  Jim Wilson  <jim.wilson@linaro.org>
 
        * 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 (file)
index 0000000..1ced9bd
--- /dev/null
@@ -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 (file)
index 0000000..d3f4d5d
--- /dev/null
@@ -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 }