summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/p4263.C
blob: 7a49c2ba7169b7934b3da0af9592ea4c3355d6ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do assemble  }
// prms-id: 4263

enum OT {A_type, B_Type};
enum AT {A, B};

/* These are not ok. */
OT t = A;	// { dg-error "" } 
OT e2 = 1;	// { dg-error "" } 
OT e3 = 1.1;	// { dg-error "" } 

/* These are ok. */
int i = A;
double d = A;
OT e4 = A_type;