Add tests to verify that multi-dimensional arrays in Java work (inside structs)
Bug: 31438033 Change-Id: Ic27868fb0f603ca4acb2a42f144493d6ec26044f
This commit is contained in:
parent
cf8560c508
commit
9c43f016b6
1 changed files with 13 additions and 0 deletions
|
@ -21,6 +21,17 @@ interface IBase {
|
|||
Bar y;
|
||||
};
|
||||
|
||||
typedef string[3] ThreeStrings;
|
||||
typedef string[5] FiveStrings;
|
||||
|
||||
struct StringMatrix3x5 {
|
||||
FiveStrings[3] s;
|
||||
};
|
||||
|
||||
struct StringMatrix5x3 {
|
||||
ThreeStrings[5] s;
|
||||
};
|
||||
|
||||
someBaseMethod();
|
||||
|
||||
someBoolMethod(bool x) generates (bool y);
|
||||
|
@ -30,4 +41,6 @@ interface IBase {
|
|||
someOtherBaseMethod(Foo foo) generates (Foo result);
|
||||
someMethodWithFooArrays(Foo[2] fooInput) generates (Foo[2] fooOutput);
|
||||
someMethodWithFooVectors(vec<Foo> fooInput) generates (vec<Foo> fooOutput);
|
||||
|
||||
transpose(StringMatrix5x3 in) generates (StringMatrix3x5 out);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue