1 struct base 2 { 3 enum mode : short { in, out, top, bottom }; 4 enum state { pass, fail, unknown }; 5 typedef long int_type; 6 }; 7 8 struct A : public base 9 { 10 int_type _M_i; 11 int_type _M_n; 12 mode _M_type; 13 }; 14 main()15 int main() 16 { 17 A obj; 18 return 0; 19 } 20