summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.oliva/nameret1.C
blob: b32deedd4eea5e248c142e94e973c9ad68a290ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do assemble  }
// { dg-options "-Wno-deprecated" }
// Copyright (C) 1999, 2000, 2002 Free Software Foundation

// by Alexandre Oliva <oliva@lsd.ic.unicamp.br>

// distilled from libg++'s Rational.cc


inline int bar () return r {} // { dg-error "" } 

int foo () {
  return bar ();
}