new
From-SVN: r34148
This commit is contained in:
parent
86f45d2c8a
commit
392b631661
1 changed files with 14 additions and 0 deletions
14
gcc/testsuite/g++.old-deja/g++.warn/flow1.C
Normal file
14
gcc/testsuite/g++.old-deja/g++.warn/flow1.C
Normal file
|
@ -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;
|
||||
}
|
Loading…
Add table
Reference in a new issue