blob: b4c972b3c3be1d1e52050ae846bac0baa85eb0c9 [file] [log] [blame]
// { dg-require-effective-target c++11 }
struct A
{
virtual void f() & = 0;
};
struct B: A
{
void f(); // doesn't override
};
B b; // { dg-error "abstract" }