Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / parse / error25.C
bloba726a174bb426f017ccb07345ec5fd43cf7bbd58
1 // { dg-do compile }
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.
8 class foo
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" }