From 392b631661531c16c691310bb78b9af861537cca Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Wed, 24 May 2000 20:34:20 -0400 Subject: [PATCH] new From-SVN: r34148 --- gcc/testsuite/g++.old-deja/g++.warn/flow1.C | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.warn/flow1.C 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 index 00000000000..bb3413899e6 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.warn/flow1.C @@ -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; +} -- 2.30.2