diff --git a/integration-tests/tests/integration_test.rs b/integration-tests/tests/integration_test.rs index bfb92c2d7..21ef25275 100644 --- a/integration-tests/tests/integration_test.rs +++ b/integration-tests/tests/integration_test.rs @@ -12244,17 +12244,14 @@ fn test_ignore_va_list() { #[test] fn test_reference_const_char_cast() { let hdr = indoc! {" - class Bytes { - public: - typedef const char& reference; - private: - const char *d_ptr; - public: - reference front() const { return d_ptr[0]; } - }; + char kHello[] = \"hello\"; + typedef const char& typedef_to_reference; + typedef_to_reference get_data() { + return *kHello; + } "}; let rs = quote! {}; - run_test("", hdr, rs, &["Bytes"], &[]); + run_test("", hdr, rs, &["get_data"], &[]); } // Yet to test: