Merge "Additional tests for enum iteration."
am: d10cb041bc
Change-Id: Iad74708585a7cfbb97c9932ca7e1c3a8c2315749
This commit is contained in:
commit
53541a71c2
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