Skip to content

Commit

Permalink
Add test for #1308
Browse files Browse the repository at this point in the history
  • Loading branch information
adetaylor committed Jun 27, 2023
1 parent 6ad0563 commit a9b637e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions integration-tests/tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a9b637e

Please sign in to comment.