diff --git a/integration-tests/tests/integration_test.rs b/integration-tests/tests/integration_test.rs index 6bddbb9e9..c5d4fee18 100644 --- a/integration-tests/tests/integration_test.rs +++ b/integration-tests/tests/integration_test.rs @@ -12241,6 +12241,19 @@ fn test_ignore_va_list() { run_test("", hdr, rs, &["A"], &[]); } +#[test] +fn test_reference_const_char_cast() { + let hdr = indoc! {" + char kHello[] = \"hello\"; + typedef const char& typedef_to_reference; + typedef_to_reference get_data() { + return *kHello; + } + "}; + let rs = quote! {}; + run_test("", hdr, rs, &["get_data"], &[]); +} + // Yet to test: // - Ifdef // - Out param pointers