Skip to content

Commit

Permalink
added failing test for issue google#1370
Browse files Browse the repository at this point in the history
  • Loading branch information
BabaBert committed Apr 9, 2024
1 parent 6db9cb4 commit 6bab515
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions integration-tests/tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12386,6 +12386,38 @@ fn test_cpp_union_pod() {
run_test_expect_fail("", hdr, quote! {}, &[], &["CorrelationId_t_"]);
}

#[test]
fn test_issue_1370() {
let hdr = indoc! {"
template <typename T> class B{
public:
T& data;
};
class C{};
class A{
public:
B<C> data;
};
B<C>& getInner(A& outer){
return outer.data;
}
"};
let dir = quote! {
generate!("A")
generate!("B")
generate!("C")
concrete!("B<C>", B_C)

generate!("getInner")
};
run_test_ex("", hdr, quote! {}, dir, None, None, None);
// run_test("", hdr, rs, &[], &[]);
}

// Yet to test:
// - Ifdef
// - Out param pointers
Expand Down

0 comments on commit 6bab515

Please sign in to comment.