| 1 |
// { dg-do assemble } |
| 2 |
// prms-id: 4263 |
| 3 |
|
| 4 |
enum OT {A_type, B_Type}; |
| 5 |
enum AT {A, B}; |
| 6 |
|
| 7 |
/* These are not ok. */ |
| 8 |
OT t = A; // { dg-error "" } |
| 9 |
OT e2 = 1; // { dg-error "" } |
| 10 |
OT e3 = 1.1; // { dg-error "" } |
| 11 |
|
| 12 |
/* These are ok. */ |
| 13 |
int i = A; |
| 14 |
double d = A; |
| 15 |
OT e4 = A_type; |