diff options
Diffstat (limited to 'bindgen-tests/tests/headers/constify-module-enums-namespace.hpp')
-rw-r--r-- | bindgen-tests/tests/headers/constify-module-enums-namespace.hpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/bindgen-tests/tests/headers/constify-module-enums-namespace.hpp b/bindgen-tests/tests/headers/constify-module-enums-namespace.hpp new file mode 100644 index 00000000..5d8ea23a --- /dev/null +++ b/bindgen-tests/tests/headers/constify-module-enums-namespace.hpp @@ -0,0 +1,17 @@ +// bindgen-flags: --enable-cxx-namespaces --constified-enum-module ns1::ns2::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 |