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

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

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


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

int& foo (int& x) {
  bar ();
  return x;
}