1 2 3 4 5 6 7 8 9 10 11
// PR c++/28506 struct A { virtual void* foo() = 1; // { dg-error "pure" } }; struct B { void operator()()() = 1; // { dg-error "pure|function|initializer" } };