summaryrefslogtreecommitdiff
path: root/tests/headers/vtable_recursive_sig.hpp
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <ecoal95@gmail.com>2016-08-15 11:28:16 -0700
committerEmilio Cobos Álvarez <ecoal95@gmail.com>2016-08-15 13:08:22 -0700
commitf3ce8f26a08b28a0f6b6d2936c2c2676f200c63a (patch)
treef54033f91d058d1956ea08e0934af679530e933c /tests/headers/vtable_recursive_sig.hpp
parent620867d42f2c21078c4be6fa8c3057409e7ee2bf (diff)
types: Implement PartialEq in the Type trait looking at the values pointed by Rc<T>s
Diffstat (limited to 'tests/headers/vtable_recursive_sig.hpp')
-rw-r--r--tests/headers/vtable_recursive_sig.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/headers/vtable_recursive_sig.hpp b/tests/headers/vtable_recursive_sig.hpp
new file mode 100644
index 00000000..4e5af806
--- /dev/null
+++ b/tests/headers/vtable_recursive_sig.hpp
@@ -0,0 +1,11 @@
+// bindgen-flags: -std=c++11 -no-type-renaming
+
+class Derived;
+class Base {
+public:
+ virtual Derived* AsDerived() { return nullptr; }
+};
+
+class Derived final : public Base {
+ virtual Derived* AsDerived() override { return this; }
+};