summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/expectations/duplicated_constants_in_ns.rs8
-rw-r--r--tests/headers/duplicated_constants_in_ns.hpp7
2 files changed, 15 insertions, 0 deletions
diff --git a/tests/expectations/duplicated_constants_in_ns.rs b/tests/expectations/duplicated_constants_in_ns.rs
new file mode 100644
index 00000000..3f7fefe6
--- /dev/null
+++ b/tests/expectations/duplicated_constants_in_ns.rs
@@ -0,0 +1,8 @@
+/* automatically generated by rust-bindgen */
+
+
+#![feature(const_fn)]
+#![allow(non_snake_case)]
+
+
+
diff --git a/tests/headers/duplicated_constants_in_ns.hpp b/tests/headers/duplicated_constants_in_ns.hpp
new file mode 100644
index 00000000..1f20af35
--- /dev/null
+++ b/tests/headers/duplicated_constants_in_ns.hpp
@@ -0,0 +1,7 @@
+// bindgen-flags: -no-namespaced-constants
+namespace foo {
+ const int FOO = 4;
+}
+namespace bar {
+ const int FOO = 5;
+}