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

Commit d870cd7d authored by Andreas Huber's avatar Andreas Huber Committed by android-build-merger
Browse files

Adds tests to verify proper C++ code generation for multi-dimensional arrays...

Adds tests to verify proper C++ code generation for multi-dimensional arrays am: cf8560c5 am: 1bd98424
am: e783aeb7

Change-Id: Ic4456887727cf531ec7c2a91e165a3897817076e
parents 2a67c396 e783aeb7
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
@@ -47,6 +47,20 @@ interface IFoo {
        // handle loveHandle;
    };

    typedef float[3] ThreeFloats;
    typedef float[5] FiveFloats;

    struct Quux {
        string first;
        string last;
    };

    typedef Quux[3] ThreeQuuxes;

    struct MultiDimensional {
        ThreeQuuxes[5] quuxMatrix;
    };

    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);
@@ -64,4 +78,7 @@ interface IFoo {

    haveSomeStrings(string[3] array) generates (string[2] result);
    haveAStringVec(vec<string> vector) generates (vec<string> result);

    transposeMe(FiveFloats[3] in) generates (ThreeFloats[5] out);
    callingDrWho(MultiDimensional in) generates (MultiDimensional out);
};