Skip to content

Commit 36d829e

Browse files
committed
transpile: tests: out_of_range_int.c before #1266
1 parent 4a4c0cc commit 36d829e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

c2rust-transpile/tests/snapshots/snapshots__transpile@out_of_range_int.c.snap

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@ input_file: c2rust-transpile/tests/snapshots/out_of_range_int.c
55
---
66
#![allow(
77
dead_code,
8+
mutable_transmutes,
89
non_camel_case_types,
910
non_snake_case,
1011
non_upper_case_globals,
1112
unused_assignments,
1213
unused_mut
1314
)]
14-
pub type __int32_t = i32;
15+
pub type __int32_t = std::ffi::c_int;
1516
pub type int32_t = __int32_t;
1617
#[no_mangle]
1718
pub unsafe extern "C" fn f() {
18-
let mut sign: int32_t = 0x80000000 as int32_t;
19+
let mut sign: int32_t = 0x80000000 as std::ffi::c_uint as int32_t;
1920
}

0 commit comments

Comments
 (0)