mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 17:31:58 +00:00
Add tests to verify that multi-dimensional arrays in Java work (inside structs) am: 9c43f016b6 am: 975f5d66b2 am: a0d07c9f72
am: 0ec1219101
Change-Id: I78a8b686a3709495597c53d10d3d2164fb47c6c0
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user