summaryrefslogtreecommitdiff
path: root/tests/headers/reparented_replacement.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/headers/reparented_replacement.hpp')
-rw-r--r--tests/headers/reparented_replacement.hpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/headers/reparented_replacement.hpp b/tests/headers/reparented_replacement.hpp
new file mode 100644
index 00000000..4ac2bf03
--- /dev/null
+++ b/tests/headers/reparented_replacement.hpp
@@ -0,0 +1,16 @@
+// bindgen-flags: --enable-cxx-namespaces
+
+namespace foo {
+ struct Bar {
+ int baz;
+ };
+}
+
+namespace bar {
+ /// <div rustbindgen replaces="foo::Bar"></div>
+ struct Bar_Replacement {
+ int bazz;
+ };
+};
+
+typedef foo::Bar ReferencesBar;