::A::ax::undefex3;// expected-error {{expected a class or namespace}} expected-error {{expected '=', ',', ';', 'asm', or '__attribute__' after declarator}}
A::undef1::undef2ex4;// expected-error {{no member named 'undef1'}} expected-error {{expected '=', ',', ';', 'asm', or '__attribute__' after declarator}}
classC2{
voidm();
intx;
};
voidC2::m(){
x=0;
}
namespaceB{
void::A::Af(){}// expected-error {{definition or redeclaration for 'Af' not in a namespace enclosing 'A'}}
}
voidf1(){
voidA::Af();// expected-error {{definition or redeclaration for 'Af' not allowed inside a function}}
}
voidf2(){
A::;// expected-error {{expected unqualified-id}}
A::C::undef=0;// expected-error {{no member named 'undef'}}
::A::C::cx=0;
intx=::A::ax=A::C::cx;
x=sizeof(A::C);
x=sizeof(::A::C::cx);
}
A::Cc1;
structA::Cc2;
structS:publicA::C{};
structA::undef;// expected-error {{'undef' does not name a tag member in the specified scope}}
// make sure the following doesn't hit any asserts
voidf4(undef::C);// expected-error {{use of undeclared identifier 'undef'}} // expected-error {{expected ')'}} expected-error {{to match this '('}} // expected-error {{variable has incomplete type 'void'}}