summaryrefslogtreecommitdiffstats
path: root/ipc/ipdl/test/ipdl/error/mutualRecStructUnion.ipdl
blob: cd193f9f295edaafdd50eb7cd265fa63fde890e3 (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
//error: struct `X' is only partially defined
//error: union `Y' is only partially defined
//error: struct `Z' is only partially defined

struct X {
    int i;
    Y[] y;
};

union Y {
    X;
    Z;
};

struct Z {
    double d;
    X x;
};

protocol mutualRecStructUnion {
child:
    async Test(X x, Y y, Z z);
    async __delete__();
};