mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 21:37:44 +00:00
Add test for putting different types in a struct / union. am: 04e53a1ca2
am: 049439eb1f
Change-Id: I5552f0d8359f4fc95dd9e243e1cec39b8a9af7eb
This commit is contained in:
@@ -98,6 +98,29 @@ interface IFoo {
|
||||
|
||||
typedef bitfield<BitField> Mask;
|
||||
|
||||
struct Everything {
|
||||
union U {
|
||||
int8_t number;
|
||||
int8_t[1][2] multidimArray;
|
||||
pointer p;
|
||||
Fumble anotherStruct;
|
||||
bitfield<BitField> bf;
|
||||
} u;
|
||||
|
||||
int8_t number;
|
||||
handle h;
|
||||
fmq_sync<uint8_t> descSync;
|
||||
fmq_unsync<uint8_t> descUnsync;
|
||||
memory mem;
|
||||
pointer p;
|
||||
string s;
|
||||
vec<string> vs;
|
||||
string[2][2] multidimArray;
|
||||
string[3] sArray;
|
||||
Quux anotherStruct;
|
||||
bitfield<BitField> bf;
|
||||
};
|
||||
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user