3 // typeid for local types
4 // typeid bool vs int and enum vs int
11 // 4: local class in non-main function
19 X2 (unsigned int i = 35): counter(i) {}
21 unsigned int ret_counter() {return counter;}
24 class_p = typeid(X2) == typeid(obj_1);
33 enum_p = typeid(A) == typeid(E);
45 enum2_p = typeid(A2) == typeid(E2);
46 int_p = typeid(int) == typeid(E2);
47 bool_p = typeid(bool) == typeid(E2);
61 X (unsigned int i = 35): counter(i) {}
63 unsigned int ret_counter() {return counter;}
66 class_p = typeid(X) == typeid(obj_1);
68 // 4: local class in function