summaryrefslogtreecommitdiff
path: root/bindgen-tests/tests/headers/virtual_interface.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'bindgen-tests/tests/headers/virtual_interface.hpp')
-rw-r--r--bindgen-tests/tests/headers/virtual_interface.hpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/bindgen-tests/tests/headers/virtual_interface.hpp b/bindgen-tests/tests/headers/virtual_interface.hpp
new file mode 100644
index 00000000..00ab0737
--- /dev/null
+++ b/bindgen-tests/tests/headers/virtual_interface.hpp
@@ -0,0 +1,24 @@
+class PureVirtualIFace {
+public:
+ virtual void Foo() = 0;
+ virtual void Bar(unsigned int) = 0;
+};
+
+class AnotherInterface {
+public:
+ virtual void Baz() = 0;
+};
+
+class Implementation : public PureVirtualIFace {
+public:
+ void Foo() override {}
+ void Bar(unsigned int) override {}
+};
+
+class DoubleImpl : public PureVirtualIFace, public AnotherInterface {
+public:
+ void Foo() override {}
+ void Bar(unsigned int) override {}
+
+ void Baz() override {}
+};