gcc/testsuite/g++.old-deja/g++.oliva/nameret1.C
raw| 1 | // { dg-do assemble } |
| 2 | // { dg-options "-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 Rational.cc |
| 8 | |
| 9 | |
| 10 | inline int bar () return r {} // { dg-error "" } |
| 11 | |
| 12 | int foo () { |
| 13 | return bar (); |
| 14 | } |