* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / forw_enum11.C
blob8cabc038fcea758233b6ae5ed7b7d499af3e2122
1 // { dg-do compile { target c++11 } }
3 enum { A = 1 };
4 struct T
6   int i1, i2, i3, i4, i5, i6, i7;
7   enum E2 : int;
9   void f();
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");
17 void T::f()
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");