blob: 6371c165025ea92c328478e0d08b835a1ca44abb [file] [log] [blame]
// PR c++/49996
// { dg-do compile { target c++11 } }
struct A
{
~A()
{ }
};
struct B
{
const A& ref;
};
int main()
{
B* p = new B{A()};
}