Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 309ccc1d authored by Yifan Hong's avatar Yifan Hong Committed by android-build-merger
Browse files

Add test for putting different types in a struct / union. am: 04e53a1c am:...

Add test for putting different types in a struct / union. am: 04e53a1c am: 049439eb am: ce142067
am: b76db3e2

Change-Id: I878b7f2a7ba449d3330dd14fdd9be3d55554a1a2
parents d0461a49 b76db3e2
Loading
Loading
Loading
Loading
+23 −0
Original line number Diff line number Diff line
@@ -98,6 +98,29 @@ interface IFoo {

    typedef bitfield<BitField> Mask;

    struct Everything {
        union U {
            int8_t number;
            int8_t[1][2] multidimArray;
            pointer p;
            Fumble anotherStruct;
            bitfield<BitField> bf;
        } u;

        int8_t number;
        handle h;
        fmq_sync<uint8_t> descSync;
        fmq_unsync<uint8_t> descUnsync;
        memory mem;
        pointer p;
        string s;
        vec<string> vs;
        string[2][2] multidimArray;
        string[3] sArray;
        Quux anotherStruct;
        bitfield<BitField> bf;
    };

    doThis(float param);
    doThatAndReturnSomething(int64_t param) generates (int32_t result);
    doQuiteABit(int32_t a, int64_t b, float c, double d) generates (double something);