blob: 33fb51debdd738d59bb94de8c5f02afebfa6fc57 [file] [log] [blame]
// Origin PR c++/48574
// { dg-do compile { target c++11 } }
struct A
{
virtual int foo();
};
void baz (int);
template <typename T>
void
bar(T x)
{
A &b = *x;
baz (b.foo ());
}
void
foo()
{
A a;
bar(&a);
}