Skip to content

Commit f96dbe3

Browse files
committed
Update tests
1 parent ac8c447 commit f96dbe3

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

‎tests/unit/out/refcount/char_signed.rs‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ fn main_0() -> i32 {
3232
"{}",
3333
(({ is_negative_1((lit.as_pointer() as Ptr::<i8>),) }) as i32)
3434
);
35+
let mut u8s: Ptr<i8> = Ptr::<i8>::from_string_literal(b"\xc3\xa9");
36+
println!(
37+
"{} {}",
38+
((elem!(u8s, 0).read()) as i32),
39+
((elem!(u8s, 1).read()) as i32)
40+
);
3541
let mut p: Ptr<i8> = Ptr::<i8>::from_string_literal(b"\x80");
3642
println!(
3743
"{} {}",

‎tests/unit/out/unsafe/char_signed.rs‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ unsafe fn main_0() -> i32 {
3838
c"%d\n".as_ptr() as *const i8,
3939
((unsafe { is_negative_1((lit.as_mut_ptr()).cast_const()) }) as i32),
4040
);
41+
let mut u8s: *const libc::c_char = c"\xc3\xa9".as_ptr();
42+
printf(
43+
c"%d %d\n".as_ptr() as *const i8,
44+
((*u8s.offset((0) as isize)) as i32),
45+
((*u8s.offset((1) as isize)) as i32),
46+
);
4147
let mut p: *const libc::c_char = c"\x80".as_ptr();
4248
printf(
4349
c"%d %d\n".as_ptr() as *const i8,

0 commit comments

Comments
 (0)