Merge "Additional tests for enum iteration." am: d10cb041bc
am: 53541a71c2
Change-Id: If92bd1e2d89725186634ab0068b86112934bf7e9
This commit is contained in:
commit
a110506924
1 changed files with 27 additions and 0 deletions
|
@ -38,3 +38,30 @@ struct Outer {
|
|||
struct Unrelated {
|
||||
Outer.Inner great;
|
||||
};
|
||||
|
||||
// structs to test enum iterators in hidl_test
|
||||
struct EnumIterators {
|
||||
enum Empty : uint32_t {};
|
||||
|
||||
enum Parent : uint32_t {
|
||||
A,
|
||||
};
|
||||
enum EmptyChild : Parent {};
|
||||
enum Grandchild : EmptyChild {
|
||||
B,
|
||||
};
|
||||
|
||||
enum SkipsValues : uint32_t {
|
||||
A = 7,
|
||||
B,
|
||||
C = 100,
|
||||
D,
|
||||
E
|
||||
};
|
||||
enum MultipleValues : uint32_t {
|
||||
A = 7,
|
||||
B = 7,
|
||||
C = 8,
|
||||
D = 7,
|
||||
};
|
||||
};
|
Loading…
Reference in a new issue