blob: 0ff49cb452d4ed4135569ddfc4686e7c443dea19 [file] [log] [blame]
enum num {
NEG = -1,
NIL = 0,
ONE = 1U,
DUO = 2LL,
};
_Static_assert([typeof(NIL)] == [typeof(NEG)], "enum same type");
_Static_assert([typeof(ONE)] == [typeof(NEG)], "enum same type");
_Static_assert([typeof(DUO)] == [typeof(NEG)], "enum same type");
/*
* check-name: enum-same-type
*/