blob: 65d5150c75157c8efc6509f8db3d0d485ccdde0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// prms-id: 4263
enum OT {A_type, B_Type};
enum AT {A, B};
/* These are not ok. */
OT t = A; // ERROR -
OT e2 = 1; // ERROR -
OT e3 = 1.1; // ERROR -
/* These are ok. */
int i = A;
double d = A;
OT e4 = A_type;
|