Added missing testcase of r232919.
authorAndre Vehreschild <vehre@gcc.gnu.org>
Thu, 28 Jan 2016 11:41:10 +0000 (12:41 +0100)
committerAndre Vehreschild <vehre@gcc.gnu.org>
Thu, 28 Jan 2016 11:41:10 +0000 (12:41 +0100)
From-SVN: r232920

gcc/testsuite/gfortran.dg/block_15.f08 [new file with mode: 0644]

diff --git a/gcc/testsuite/gfortran.dg/block_15.f08 b/gcc/testsuite/gfortran.dg/block_15.f08
new file mode 100644 (file)
index 0000000..fd1ca55
--- /dev/null
@@ -0,0 +1,20 @@
+! { dg-do compile }
+!
+! Contributed by Tobias Burnus  <burnus@gcc.gnu.org>
+! Check fix for PR62536 works as expected.
+
+function f2 (x)
+implicit none
+  integer f2, x
+  block
+   block named ! { dg-error "Unclassifiable statement" }
+    integer a ! should be SAVEd
+    a = a + x ! should increment by y every time
+    f2 = a
+   end block named ! { dg-error "Syntax error in END BLOCK statement" }
+  end block
+  return
+endfunction
+
+end
+