Fix test-suite fallout of default -Wreturn-type.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.oliva / nameret2.C
blob5f86b1c8417ff4a9f5926e6dccff7cac9db7a48b
1 // { dg-do assemble  }
2 // { dg-options "-O1 -Wno-deprecated -Wno-return-type" }
3 // Copyright (C) 1999, 2000, 2002 Free Software Foundation
5 // by Alexandre Oliva <oliva@lsd.ic.unicamp.br>
7 // distilled from libg++'s Integer.cc
10 inline int bar () return r {} // { dg-error "" } 
12 int& foo (int& x) {
13   bar ();
14   return x;