Merge "Additional tests for enum iteration."

am: d10cb041bc

Change-Id: Iad74708585a7cfbb97c9932ca7e1c3a8c2315749
This commit is contained in:
Steven Moreland 2017-11-27 20:21:05 +00:00 committed by android-build-merger
commit 53541a71c2

View file

@ -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,
};
};