Adds tests to verify proper C++ code generation for multi-dimensional arrays am: cf8560c508

am: 1bd9842489

Change-Id: I973e6e36daa44c3c8dcbaf0956a1825935384fae
This commit is contained in:
Andreas Huber 2016-09-13 18:38:23 +00:00 committed by android-build-merger
commit e783aeb752

View file

@ -47,6 +47,20 @@ interface IFoo {
// handle loveHandle; // 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); doThis(float param);
doThatAndReturnSomething(int64_t param) generates (int32_t result); doThatAndReturnSomething(int64_t param) generates (int32_t result);
doQuiteABit(int32_t a, int64_t b, float c, double d) generates (double something); 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); haveSomeStrings(string[3] array) generates (string[2] result);
haveAStringVec(vec<string> vector) generates (vec<string> result); haveAStringVec(vec<string> vector) generates (vec<string> result);
transposeMe(FiveFloats[3] in) generates (ThreeFloats[5] out);
callingDrWho(MultiDimensional in) generates (MultiDimensional out);
}; };