new
authorJason Merrill <jason@gcc.gnu.org>
Thu, 25 May 2000 00:34:20 +0000 (20:34 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 25 May 2000 00:34:20 +0000 (20:34 -0400)
From-SVN: r34148

gcc/testsuite/g++.old-deja/g++.warn/flow1.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.old-deja/g++.warn/flow1.C b/gcc/testsuite/g++.old-deja/g++.warn/flow1.C
new file mode 100644 (file)
index 0000000..bb34138
--- /dev/null
@@ -0,0 +1,14 @@
+// Test that we don't get a warning about flowing off the end.
+// Build don't link:
+// Special g++ Options: -Wreturn-type
+
+struct A {
+  ~A ();
+};
+
+int f()
+{
+  A a1[2];
+  A a2[2];
+  return 1234567;
+}