1 // { dg-do compile { target c++11 } }
6 int i1, i2, i3, i4, i5, i6, i7;
12 enum T::E2 : int { A1 = A, A2 = 23 };
14 static_assert(int(T::A1) == 1, "error");
15 static_assert(int(T::A2) == 23, "error");
19 static_assert(int(T::A1) == 1, "error");
20 static_assert(int(T::A2) == 23, "error");
21 static_assert(int(A1) == 1, "error");
22 static_assert(int(A2) == 23, "error");