2 // { dg-options "-std=c++0x" }
6 enum E1 : unsigned { E1_en = 1 };
7 enum E2 : char { E2_en = 1 };
8 enum class E3 { a = -1 };
9 enum class E4 : unsigned char { c = 1 };
10 enum class E5 : int { a = -1, b = 1 };
11 enum class E6 : long { c = __LONG_MAX__ };
14 struct underlying_type
15 { typedef __underlying_type(T) type; };
19 test(T t, typename underlying_type<T>::type v)
31 test(E6::c, __LONG_MAX__);