Add test for putting different types in a struct / union. am: 04e53a1ca2
am: 049439eb1f
am: ce1420670c
Change-Id: I1546626d6c67f86216cbc3699b4b0f11dac2a336
This commit is contained in:
commit
b76db3e2e7
1 changed files with 23 additions and 0 deletions
|
@ -98,6 +98,29 @@ interface IFoo {
|
||||||
|
|
||||||
typedef bitfield<BitField> Mask;
|
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);
|
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);
|
||||||
|
|
Loading…
Reference in a new issue