Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.oliva/nameret2.C

raw
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 <[email protected]>
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 }