Skip to content

Commit 5b292e5

Browse files
authored
Merge pull request #1398 from google/typedef_fn_param
Typedef fn param test
2 parents 258f65a + 3023be0 commit 5b292e5

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

integration-tests/tests/integration_test.rs

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

12389+
#[test]
12390+
#[ignore] // https://github.com/google/autocxx/issues/1382
12391+
fn test_override_typedef_fn() {
12392+
let hdr = indoc! {"
12393+
#include <map>
12394+
#include <memory>
12395+
typedef std::shared_ptr<std::map<int, int>> Arg;
12396+
// bindgen currently outputs pub type Arg = u8;
12397+
class Foo {
12398+
public:
12399+
void *createFoo(const int, Arg &arg);
12400+
// void *createFoo(const int, std::shared_ptr<std::map<int, int>> &arg); // works
12401+
};
12402+
"};
12403+
run_test("", hdr, quote! {}, &["Foo"], &[]);
12404+
}
12405+
1238912406
// Yet to test:
1239012407
// - Ifdef
1239112408
// - Out param pointers

0 commit comments

Comments
 (0)