1 // { dg-do assemble } 2 // { dg-options "-O1 -Wno-deprecated -Wno-return-type" } 3 // Copyright (C) 1999, 2000, 2002 Free Software Foundation 4 5 // by Alexandre Oliva <oliva@lsd.ic.unicamp.br> 6 7 // distilled from libg++'s Integer.cc 8 9 10 inline int bar () return r {} // { dg-error "" } 11 12 int& foo (int& x) { 13 bar (); 14 return x; 15 } 16