From 312dc5ad6de828a82b543f9b991bf01349e4083a Mon Sep 17 00:00:00 2001 From: uttarayan21 Date: Tue, 10 Sep 2024 17:24:57 +0530 Subject: [PATCH 1/2] feat: Add test case for overriden_typedef_fn_param --- 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 0939caecc..bf3cbecb8 100644 --- a/integration-tests/tests/integration_test.rs +++ b/integration-tests/tests/integration_test.rs @@ -12386,6 +12386,20 @@ fn test_cpp_union_pod() { run_test_expect_fail("", hdr, quote! {}, &[], &["CorrelationId_t_"]); } +#[test] +fn test_override_typedef_fn() { + let hdr = indoc! {" + #include + typedef std::shared_ptr> Arg; + class Foo { + public: + void *createFoo(const int); + void *createFoo(const int, Arg &arg); + }; + "}; + run_test("", hdr, quote! {}, &["Foo"], &[]); +} + // Yet to test: // - Ifdef // - Out param pointers From a341f07070c9ac690c55b86a31760e857c774b45 Mon Sep 17 00:00:00 2001 From: uttarayan21 Date: Tue, 10 Sep 2024 17:28:37 +0530 Subject: [PATCH 2/2] chore: retrigger cla