Lines Matching defs:E1
3 enum class E1 {
11 E1 v1 = Val1; // expected-error{{undeclared identifier}}
12 E1 v2 = E1::Val1;
14 static_assert(sizeof(E1) == sizeof(int), "bad size");
15 static_assert(sizeof(E1::Val1) == sizeof(int), "bad size");
19 E1 v3 = E2::Val1; // expected-error{{cannot initialize a variable}}
20 int x1 = E1::Val1; // expected-error{{cannot initialize a variable}}
27 E1 v5 = Val2; // expected-error{{cannot initialize a variable}}
34 int a2[E1::Val1]; // expected-error{{size of array has non-integer type}}
37 int* p2 = new int[E1::Val1]; // expected-error{{array size expression must have integral or unscoped enumeration type, not 'E1'}}
40 e1 = -2147483648, // ok
46 e1 = 2147483647, // ok
51 e1 = false, e2 = true,
56 e1 = false, e2 = true,
63 e1, e2,