Skip to content

Commit 312dc5a

Browse files
committed
feat: Add test case for overriden_typedef_fn_param
1 parent 48c74b6 commit 312dc5a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

integration-tests/tests/integration_test.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12386,6 +12386,20 @@ fn test_cpp_union_pod() {
1238612386
run_test_expect_fail("", hdr, quote! {}, &[], &["CorrelationId_t_"]);
1238712387
}
1238812388

12389+
#[test]
12390+
fn test_override_typedef_fn() {
12391+
let hdr = indoc! {"
12392+
#include <map>
12393+
typedef std::shared_ptr<std::map<int, int>> Arg;
12394+
class Foo {
12395+
public:
12396+
void *createFoo(const int);
12397+
void *createFoo(const int, Arg &arg);
12398+
};
12399+
"};
12400+
run_test("", hdr, quote! {}, &["Foo"], &[]);
12401+
}
12402+
1238912403
// Yet to test:
1239012404
// - Ifdef
1239112405
// - Out param pointers

0 commit comments

Comments
 (0)