aboutsummaryrefslogtreecommitdiff
path: root/compiler/tests/verifier/typedef_enum.bad
blob: afbf42c540b3a7723b42884d83aa6b3c0186aadd (plain)
1
2
3
4
5
6
7
8
9
10

/* ERRORS */
typedef a = enum(v=bool:false,w);
typedef b = enum(v=not :true,w);
typedef c = uint16 enum(v=-1,w=-2);
typedef d = bool enum(v=1,w=0);
typedef e = struc enum(v=());
typedef f = struc enum(w=(1,1));

typedef struc = (int x);