diff --git a/integration-tests/tests/integration_test.rs b/integration-tests/tests/integration_test.rs index 9d6590023..239aa040f 100644 --- a/integration-tests/tests/integration_test.rs +++ b/integration-tests/tests/integration_test.rs @@ -12578,6 +12578,35 @@ fn test_opaque_directive() { ); } +#[test] +fn test_templated_ref() { + let hdr = indoc! {" + template + class X; + + class B { + public: + typedef X F; + void foo(const F& x); + }; + "}; + let rs = quote! { + use autocxx::prelude::*; + let _ = ffi::Bar::new().within_unique_ptr().foo(); + }; + run_test_ex( + "", + hdr, + rs, + quote! { + generate!("B") + }, + None, + None, + None, + ); +} + // Yet to test: // - Ifdef // - Out param pointers