summaryrefslogtreecommitdiff
path: root/bindgen-tests/tests/headers/constify-module-enums-simple-nonamespace.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'bindgen-tests/tests/headers/constify-module-enums-simple-nonamespace.hpp')
-rw-r--r--bindgen-tests/tests/headers/constify-module-enums-simple-nonamespace.hpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/bindgen-tests/tests/headers/constify-module-enums-simple-nonamespace.hpp b/bindgen-tests/tests/headers/constify-module-enums-simple-nonamespace.hpp
new file mode 100644
index 00000000..5b15f5c8
--- /dev/null
+++ b/bindgen-tests/tests/headers/constify-module-enums-simple-nonamespace.hpp
@@ -0,0 +1,12 @@
+// bindgen-flags: --constified-enum-module one::Foo
+
+namespace one {
+ enum class Foo {
+ Variant1, Variant2,
+ };
+}
+
+class Bar {
+ one::Foo baz1;
+ one::Foo* baz2;
+};