// ---------------------------------------------------------------------- // // nestcls.cc - Do we support nested class id's? // // History: // 11-May-2000 WEB Initial draft // 25-Apr-2001 WEB s//"ISOcxx\/ISOcxxSyntax.hh"/ // // ---------------------------------------------------------------------- #include "ISOcxx/ISOcxxSyntax.hh" struct A { struct B { int f() { return 0; } }; // B }; // A #ifndef DEFECT_NESTED_CLASS_ID /* compliant */ #define AB A::B #else /* defective */ typedef A::B AB; #endif /* DEFECT_NESTED_CLASS_ID */ struct C : public AB { int f() { return AB::f(); } }; // C int main() { return C().f(); } // main()