diff options
author | Jason Merrill <jason@gcc.gnu.org> | 2000-05-24 20:34:20 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2000-05-24 20:34:20 -0400 |
commit | 392b631661531c16c691310bb78b9af861537cca (patch) | |
tree | 50842e07d7f4da60d57d3f614faceab1b1c4284b | |
parent | 86f45d2c8a0e984f8f745debe7c92801a2b325d8 (diff) | |
download | gcc-392b631661531c16c691310bb78b9af861537cca.zip gcc-392b631661531c16c691310bb78b9af861537cca.tar.gz gcc-392b631661531c16c691310bb78b9af861537cca.tar.bz2 |
new
From-SVN: r34148
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.warn/flow1.C | 14 |
1 files changed, 14 insertions, 0 deletions
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 0000000..bb34138 --- /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; +} |