summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.benjamin/p13417.C
blob: 132b13df277d8988dcd5647ace60a797f76dc156 (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-do assemble  }
// { dg-options "-Wno-deprecated" }
// prms-id: 13417

class   Foo {
public:
  explicit Foo (int){}
};
Foo f(10);
Foo blat() return f(4){} // { dg-error "" } named return value