Lines Matching refs:is_unsigned
13 #define is_unsigned(X) ((typeof(X))-1 > 0) macro
20 _Static_assert(is_unsigned(enum u), "enum u");
21 _Static_assert(is_unsigned(U) == 0, "value U"); // fail
28 _Static_assert(is_unsigned(enum v), "enum v");
29 _Static_assert(is_unsigned(V) == 1, "value V");
35 _Static_assert(is_unsigned(enum w), "enum w");
36 _Static_assert(is_unsigned(W) == 1, "value W");
43 _Static_assert(is_unsigned(enum x), "enum x");
45 _Static_assert(is_unsigned(A) == 0, "enum A"); // fail
47 _Static_assert(is_unsigned(B) == 1, "enum B");
54 _Static_assert(is_unsigned(enum y), "enum y");
56 _Static_assert(is_unsigned(C) == 0, "enum C"); // fail
58 _Static_assert(is_unsigned(D) == 1, "enum D");