From 8621a5e1474ee72989e968e847239431537bb428 Mon Sep 17 00:00:00 2001 From: Adrian Taylor Date: Tue, 27 Jun 2023 11:58:51 +0100 Subject: [PATCH] Further simplify test. --- integration-tests/tests/integration_test.rs | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) 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: