summaryrefslogtreecommitdiff
path: root/tests/headers/constify-module-enums-namespace.hpp
diff options
context:
space:
mode:
authorTravis Finkenauer <tmfinken@gmail.com>2017-06-14 01:30:33 -0700
committerTravis Finkenauer <tmfinken@gmail.com>2017-06-14 01:30:33 -0700
commitfb9959a647d446a6433b669215bda42c1da70cad (patch)
tree542ff4a1093e6ad7e9608fac14ffb120b3fa76a6 /tests/headers/constify-module-enums-namespace.hpp
parent08268464ac245f7ba78767971f0ae5c523bda53d (diff)
Add typedef/namespace tests for module const enum
Diffstat (limited to 'tests/headers/constify-module-enums-namespace.hpp')
-rw-r--r--tests/headers/constify-module-enums-namespace.hpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/headers/constify-module-enums-namespace.hpp b/tests/headers/constify-module-enums-namespace.hpp
new file mode 100644
index 00000000..397f700f
--- /dev/null
+++ b/tests/headers/constify-module-enums-namespace.hpp
@@ -0,0 +1,17 @@
+// bindgen-flags: --enable-cxx-namespaces --constified-enum-module foo
+
+namespace ns1 {
+ namespace ns2 {
+ enum foo {
+ THIS,
+ SHOULD_BE,
+ A_CONSTANT,
+ };
+ }
+
+ namespace ns3 {
+ struct bar {
+ enum ns2::foo this_should_work;
+ };
+ }
+} \ No newline at end of file