2 // Origin: Steven Bosscher <steven at gcc dot gnu dot org>
3 // PR c++/17401: ICE with invalid pure specifier
5 // NOTE: This also tests QoI of diagnostic for invalid pure specifiers.
6 // Please do *not* relax the dg-error tests.
10 virtual void bar1 () = 0;
11 virtual void bar2 () = __null; // { dg-error "invalid pure specifier" }
12 virtual void bar3 () = 4; // { dg-error "invalid pure specifier" }
13 virtual void bar4 () = A::f; // { dg-error "invalid pure specifier" }