gcc/testsuite/g++.old-deja/g++.brendan/crash22.C
raw| 1 | // { dg-do assemble } |
| 2 | // GROUPS passed old-abort |
| 3 | struct A { |
| 4 | void a1(); |
| 5 | void a2(); |
| 6 | }; |
| 7 | |
| 8 | struct B { |
| 9 | void A::a1(); // this used to die in chainon(), now grokdeclarator should// { dg-error "10:cannot declare" } cannot declare.* |
| 10 | void A::a2(); // should be fixed by the 930629 change.// { dg-error "10:cannot declare" } cannot declare.* |
| 11 | }; |