2018-02-15 Thomas Koenig <tkoenig@gcc.gnu.org>
authorThomas Koenig <tkoenig@gcc.gnu.org>
Thu, 15 Feb 2018 18:41:02 +0000 (18:41 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Thu, 15 Feb 2018 18:41:02 +0000 (18:41 +0000)
PR fortran/stop_shouldfail.f90: New test.

From-SVN: r257702

gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/stop_shouldfail.f90 [new file with mode: 0644]

index 91e14ced710958dfa77b769648d4993641e503f0..93827567331c2a6570f471e0b7b50f6c6a7c123b 100644 (file)
@@ -1,3 +1,7 @@
+2018-02-15  Thomas Koenig  <tkoenig@gcc.gnu.org>
+
+       PR fortran/stop_shouldfail.f90: New test.
+
 2018-02-15  Paolo Carlini  <paolo.carlini@oracle.com>
 
        PR c++/84330
diff --git a/gcc/testsuite/gfortran.dg/stop_shouldfail.f90 b/gcc/testsuite/gfortran.dg/stop_shouldfail.f90
new file mode 100644 (file)
index 0000000..11fc12b
--- /dev/null
@@ -0,0 +1,5 @@
+! { dg-do  run }
+! { dg-shouldfail "STOP 1" }
+program main
+  stop 1
+end program main