summaryrefslogtreecommitdiff
path: root/tests/headers/class_use_as.hpp
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <ecoal95@gmail.com>2016-03-23 23:59:15 +0100
committerEmilio Cobos Álvarez <ecoal95@gmail.com>2016-03-23 23:59:32 +0100
commitaa9bd918772039e45a7e2ff5f90a36488776af4c (patch)
treebd2ea0f7d65f100c4644af63b7652896fbe8cfcf /tests/headers/class_use_as.hpp
parenta624bc81095df028859f0982b80881dc6cd38e28 (diff)
gen: Add option to replace types via annotations
This is limited to the same namespace, but well, it seems useful enough.
Diffstat (limited to 'tests/headers/class_use_as.hpp')
-rw-r--r--tests/headers/class_use_as.hpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/headers/class_use_as.hpp b/tests/headers/class_use_as.hpp
new file mode 100644
index 00000000..a4e36ded
--- /dev/null
+++ b/tests/headers/class_use_as.hpp
@@ -0,0 +1,15 @@
+
+/**
+ * <div rustbindgen="true" replaces="whatever"></div>
+ */
+struct whatever_replacement {
+ int replacement;
+};
+
+struct whatever {
+ int b;
+};
+
+struct container {
+ whatever c;
+};