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

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

struct Y {
    X x;
    Z z;
};

struct Z {
    double d;
    X x;
};

[ChildProc=any]
protocol mutualRecStruct {
child:
    async Test(X x, Y y, Z z);
    async __delete__();
};