summaryrefslogtreecommitdiff
path: root/tests/headers/inherit-from-template-instantiation-with-vtable.hpp
diff options
context:
space:
mode:
authorChristian Poveda <christian.poveda@ferrous-systems.com>2022-09-23 21:36:14 -0500
committerChristian Poveda <christian.poveda@ferrous-systems.com>2022-10-04 20:47:17 -0500
commit0296f9e86c7756e718b6b82836ce1e09b5f8d08a (patch)
treeb5954c6680b243c0b1671a80ea973ef90877e462 /tests/headers/inherit-from-template-instantiation-with-vtable.hpp
parenta900f8f863d1313ad76603234aaeea22bb9ba7b3 (diff)
split the repo into a workspace
remove `clap` dependency :tada: update the book installation instructions
Diffstat (limited to 'tests/headers/inherit-from-template-instantiation-with-vtable.hpp')
-rw-r--r--tests/headers/inherit-from-template-instantiation-with-vtable.hpp37
1 files changed, 0 insertions, 37 deletions
diff --git a/tests/headers/inherit-from-template-instantiation-with-vtable.hpp b/tests/headers/inherit-from-template-instantiation-with-vtable.hpp
deleted file mode 100644
index 562ca0e1..00000000
--- a/tests/headers/inherit-from-template-instantiation-with-vtable.hpp
+++ /dev/null
@@ -1,37 +0,0 @@
-// bindgen-flags: -- -std=c++14
-
-// Small test that we handle virtual tables correctly when deriving from a
-// template instantiation. This wasn't previously handled at all. Note that when
-// inheriting from a template parameter, the type that is instantiated might or
-// might not have a virtual table, and we have no way of knowing. We don't
-// handle that yet, so no test for it here.
-
-/// This should have an explicit vtable.
-template<class T>
-class BaseWithVtable {
- T t;
-
- virtual void hello();
-};
-
-/// This should not have an explicit vtable.
-class DerivedWithNoVirtualMethods : public BaseWithVtable<char*> {};
-
-/// This should not have an explicit vtable.
-class DerivedWithVirtualMethods : public BaseWithVtable<char*> {
- virtual void zoidberg();
-};
-
-/// This should not have any vtable.
-template<class U>
-class BaseWithoutVtable {
- U u;
-};
-
-/// This should have an explicit vtable.
-class DerivedWithVtable : public BaseWithoutVtable<char*> {
- virtual void leela();
-};
-
-/// This should not have any vtable.
-class DerivedWithoutVtable : public BaseWithoutVtable<char*> {};