diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2017-01-10 23:09:08 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-10 23:09:08 -0800 |
commit | df043bf3dcc11bfd5c22cee5d3c6ba04d41c5f00 (patch) | |
tree | 7fd7ba8d7882a5d68215602d3eba5425600b2efc /libbindgen/tests/headers/virtual_inheritance.hpp | |
parent | c77e76c4326b3069963bf292c98eeb99f6364fa2 (diff) | |
parent | 12fd256b082f6e269700b043726f9b8494aba269 (diff) |
Auto merge of #383 - emilio:virtual-base, r=fitzgen
Tidy up and test virtual inheritance handling.
Done while investigating #380.
r? @fitzgen
Diffstat (limited to 'libbindgen/tests/headers/virtual_inheritance.hpp')
-rw-r--r-- | libbindgen/tests/headers/virtual_inheritance.hpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libbindgen/tests/headers/virtual_inheritance.hpp b/libbindgen/tests/headers/virtual_inheritance.hpp new file mode 100644 index 00000000..5198c51e --- /dev/null +++ b/libbindgen/tests/headers/virtual_inheritance.hpp @@ -0,0 +1,16 @@ + +class A { + int foo; +}; + +class B: public virtual A { + int bar; +}; + +class C: public virtual A { + int baz; +}; + +class D: public C, public B { + int bazz; +}; |