From: Jason Merrill Date: Thu, 25 May 2000 00:34:20 +0000 (-0400) Subject: new X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=392b631661531c16c691310bb78b9af861537cca;p=gcc.git new From-SVN: r34148 --- 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; +}