// { dg-do assemble } | |
// GROUPS passed old-abort | |
// This used to die in chainon; it shouldn't any more. | |
class A | |
{ | |
public: | |
class B { | |
public: | |
void f (); | |
void g (int); | |
}; | |
void B::f () {}// { dg-error "8:cannot define" } .* | |
void B::g (int val) {}// { dg-error "8:cannot define" } .* | |
}; |