blob: 6fdbd288fa7dc3a678bd1a7f2d5347a9fb1e51bd (
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
31
32
33
34
35
36
37
|
typedef thing = ();
var int a;
var int a; // ERROR duplicate
int a_const = 0;
int a_const = 1; // ERROR duplicate
/* ERRORS */
int;
int while;
int 0;
int while =;
int i =;
var int a = b;
int thing;
int thing =;
int thing = ();
int thing = a;
enum({x, y) c; }
// try to use these corrupt variables
int x1 = a_const;
int x2 = b; // ERROR b is not defined
() func() {
/* ERRORS */
a = b;
b = a;
}
int j, l; // ERROR should be "int j k;"
() func2() {
int i, j; // ERROR
}
|