aboutsummaryrefslogtreecommitdiff
path: root/compiler/tests/parser/expr_exprlists2.bad
blob: e902727f3e47493bcea2f2010550b7ed8b34b4f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

linkname "";

typedef A = (
    int a,
    int#[2] aa,
);

typedef B = (int b, int bb)#[2];

() test() {

    /* ERRORS missing left operand */
    A x = (11, [*2, 33]);
    B y = [(1, *2), (3, 4)];
    int#[2] z = [1, *2];

    /* ERRORS missing right operand */
    A xr = (11, [2*, 33]);
    B yr = [(1*, 2), (3, 4)];
    int#[2] zr = [1, 2*];
}