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

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

Add tests to verify that multi-dimensional arrays in Java work (inside structs) am: 9c43f016

am: 975f5d66

Change-Id: I27d7995678337f4f38a2d342e1b67862f0e46afd
parents e783aeb7 975f5d66
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -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);
};