diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2022-11-30 13:13:51 +0100 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2022-12-07 12:18:35 +0100 |
commit | aa9849ba06cb99a5b0917a2e7b33406fe6f76d0c (patch) | |
tree | 440eefac38dcec287ec1cdfd2ee2a2719279b88b /bindgen-tests/tests/headers/inherit_multiple_interfaces.hpp | |
parent | a9d41985313f2f4e35a15fe1a94724fb373d051c (diff) |
codegen: Do generate field offset checks for classes with multiple bases.
The bug only affects virtual inheritance, so instead disable layout
tests in the test that we know is broken. Not generating layout tests is
wrong anyways, because the offset would be wrong.
Diffstat (limited to 'bindgen-tests/tests/headers/inherit_multiple_interfaces.hpp')
-rw-r--r-- | bindgen-tests/tests/headers/inherit_multiple_interfaces.hpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bindgen-tests/tests/headers/inherit_multiple_interfaces.hpp b/bindgen-tests/tests/headers/inherit_multiple_interfaces.hpp new file mode 100644 index 00000000..725992c7 --- /dev/null +++ b/bindgen-tests/tests/headers/inherit_multiple_interfaces.hpp @@ -0,0 +1,15 @@ +class A { + virtual void Foo(); + + int member; +}; + +class B { + virtual void Bar(); + + void* member2; +}; + +class C : public A, public B { + float member3; +}; |