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