aboutsummaryrefslogtreecommitdiff
path: root/compiler/tests/parser/expr_missingoperand.bad
blob: 5f19dd88f4f16a8f049a4d8f610930d689af3b34 (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
38
39
40


int f(int x, int y);

() bad() {
    /* ERRORS */
    =;
    +;
    mod;
    else;
    then;
    1=;
    =1;
    
    int a;
    /* ERRORS */
    a=;
    =a;
    = =;
    = = =;
    = a =;
    = a = =;
    = = a;
    +++;
    not;
    not =;
    =not;
    a=not;
    mod not;
    a=/* */;
    a=while;
    
    /* ERRORS */
    f(=);
    f(=,=);
    f(/* */,a);
    f(else,else);
    f(while,while);
    f(while);
}