aboutsummaryrefslogtreecommitdiff
path: root/compiler/tests/parser/def_type_enum.bad
blob: 0a917e792277e0c53ef7152812a3cfe5d3bd12c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30

/* ERRORS */
typedef a = enum;
typedef b = enum(,);
typedef c = enum(x y);
typedef d = enum(x,,y);
typedef e = enum(x=);
typedef f = enum(x=,y);

/* ERRORS */
typedef g = enum enum();
typedef h = enum int (x,y);
typedef i = enum var (x=10,y);

/* ERRORS */
typedef j = enum[];
typedef k = enum+;
typedef l = enum[x];
typedef m = enum int;

/* ERRORS */
typedef n = int enum;
typedef o = const enum;
typedef p = const int enum;
typedef q = var enum;

/* ERRORS */
typedef r = int const enum(x,y);