Skip to content

Commit 1cfeef4

Browse files
committed
Update tests
1 parent 5fea8f6 commit 1cfeef4

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ fn main_0() -> i32 {
5353
"{}",
5454
(Ptr::<Vec<i8>>::decay(&({ fn2_1(s.as_pointer(),) })) as Ptr<i8>)
5555
);
56+
println!("{{}} {} {}", 5_u64, (-6_i32 as i64));
5657
return 0;
5758
}
5859
pub fn __cpp2rust_init_globals() {}

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ unsafe fn main_0() -> i32 {
5656
c"%s\n".as_ptr() as *const i8,
5757
(*(unsafe { fn2_1(&s) })).as_ptr(),
5858
);
59+
printf(
60+
c"{} %ju %jd\n".as_ptr() as *const i8,
61+
5_u64,
62+
(-6_i32 as i64),
63+
);
5964
return 0;
6065
}
6166
pub unsafe fn __cpp2rust_init_globals() {}

0 commit comments

Comments
 (0)