blob: 26f1ca5de84b6945a0f5dce80c9ad6fa62fd6799 [file] [log] [blame]
// PR c++/986
// { dg-options "-Wall -Wextra" }
struct X { X (int); };
struct Y {
Y ();
const X &x; // note the ampersand
};
Y::Y () : x(1) {} // { dg-warning "temporary" }