diff options
author | Daniel Brooks <db48x@db48x.net> | 2018-06-03 11:35:07 -0700 |
---|---|---|
committer | Daniel Brooks <db48x@db48x.net> | 2018-06-03 11:35:07 -0700 |
commit | 0b293e1f6d9b26fb8dcc5113c3f04c47b588d04f (patch) | |
tree | 430f785efda556a507cb53c038be605b97d3449f /tests/headers/enum-default-bitfield.h | |
parent | cfd0fa5e559327006d6fbc1e37357a2981aba224 (diff) |
Add an option to set the default codegen style for all enums
Diffstat (limited to 'tests/headers/enum-default-bitfield.h')
-rw-r--r-- | tests/headers/enum-default-bitfield.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/headers/enum-default-bitfield.h b/tests/headers/enum-default-bitfield.h new file mode 100644 index 00000000..a73f2838 --- /dev/null +++ b/tests/headers/enum-default-bitfield.h @@ -0,0 +1,11 @@ +// bindgen-flags: --default-enum-variant=bitfield --constified-enum-module=Neg + +enum Foo { + Bar = 0, + Qux +}; + +enum Neg { + MinusOne = -1, + One = 1, +}; |