summaryrefslogtreecommitdiff
path: root/tests/headers/enum-undefault.h
diff options
context:
space:
mode:
authorDaniel Brooks <db48x@db48x.net>2018-06-04 10:04:02 -0700
committerDaniel Brooks <db48x@db48x.net>2018-06-04 10:06:33 -0700
commit3a8df51056f392036c223d1fbc213d069dfa9124 (patch)
tree69279ce28baa193df0d3e4ccd689f9ea4e29fdd4 /tests/headers/enum-undefault.h
parent440374102538f05eb4208fd0bef1db9214a4d48a (diff)
add --constified-enum to output consts when the default is changed
Diffstat (limited to 'tests/headers/enum-undefault.h')
-rw-r--r--tests/headers/enum-undefault.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/headers/enum-undefault.h b/tests/headers/enum-undefault.h
new file mode 100644
index 00000000..7150be0d
--- /dev/null
+++ b/tests/headers/enum-undefault.h
@@ -0,0 +1,11 @@
+// bindgen-flags: --default-enum-style=rust --constified-enum=Neg
+
+enum Foo {
+ Bar = 0,
+ Qux
+};
+
+enum Neg {
+ MinusOne = -1,
+ One = 1,
+};