aboutsummaryrefslogtreecommitdiff
path: root/compiler/tests/parser/expr_conditional.bad
blob: fad7756301e7b0690a1ff2175cd03d6e50a2f18c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16


() test() {
    /* ERRORS */
    int a = then;
    int b = else;
    int c = 1==2 then;
    int d = 1==2 then 3;
    int e = 1==2 then 3 else;
    int f = then 3;
    int g = then 3 else;
    int h = then 3 else 4;
    int i = 3 else;
    int j = 3 else 4;
    int k = 3 else 4 then;
    int l = 3 else 4 then 1==0;
}