Skip to content

Commit

Permalink
Further simplify test.
Browse files Browse the repository at this point in the history
  • Loading branch information
adetaylor committed Jun 27, 2023
1 parent 3c5d3c7 commit 8621a5e
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions integration-tests/tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8621a5e

Please sign in to comment.