summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/ctor8.C
blob: 3491f6a1d2cf07ab92ae25843e332b6388f92ec7 (plain)
1
2
3
4
5
6
7
8
9
// PR c++/29039

typedef struct S {
  int &r; 
}; // { dg-warning "'typedef' was ignored" }

S f () {
  return S (); // { dg-error "reference" }
}