From 51c01502133da555eb3db95904f70b2e02ee2ce4 Mon Sep 17 00:00:00 2001 From: d2weber <29163905+d2weber@users.noreply.github.com> Date: Wed, 30 Aug 2023 19:03:57 +0200 Subject: [PATCH] Add failing test --- integration-tests/tests/integration_test.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/integration-tests/tests/integration_test.rs b/integration-tests/tests/integration_test.rs index 7c2cccfe2..b44682592 100644 --- a/integration-tests/tests/integration_test.rs +++ b/integration-tests/tests/integration_test.rs @@ -4217,6 +4217,20 @@ fn test_nested_enum_in_namespace() { run_test("", hdr, rs, &["take_A_B"], &[]); } +#[test] +fn test_abstract_subclass() { + let hdr = indoc! {" + struct A + { + virtual int f() = 0; + }; + + struct B : virtual public A {}; + "}; + let rs = quote! {}; + run_test("", hdr, rs, &["B"], &[]); +} + #[test] fn test_abstract_nested_type() { let hdr = indoc! {"