Merge "Additional tests for enum iteration." am: d10cb041bc

am: 53541a71c2

Change-Id: If92bd1e2d89725186634ab0068b86112934bf7e9
This commit is contained in:
Steven Moreland 2017-11-27 20:24:08 +00:00 committed by android-build-merger
commit a110506924

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