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" } }