We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
out_of_range_int.c
int32_t
1 parent a2c2149 commit 4a4c0ccCopy full SHA for 4a4c0cc
c2rust-transpile/tests/snapshots/out_of_range_int.c
@@ -0,0 +1,5 @@
1
+#include <stdint.h>
2
+
3
+void f() {
4
+ int32_t sign = 0x80000000U;
5
+}
c2rust-transpile/tests/snapshots/snapshots__transpile@out_of_range_int.c.snap
@@ -0,0 +1,19 @@
+---
+source: c2rust-transpile/tests/snapshots.rs
+expression: cat tests/snapshots/out_of_range_int.rs
+input_file: c2rust-transpile/tests/snapshots/out_of_range_int.c
6
+#![allow(
7
+ dead_code,
8
+ non_camel_case_types,
9
+ non_snake_case,
10
+ non_upper_case_globals,
11
+ unused_assignments,
12
+ unused_mut
13
+)]
14
+pub type __int32_t = i32;
15
+pub type int32_t = __int32_t;
16
+#[no_mangle]
17
+pub unsafe extern "C" fn f() {
18
+ let mut sign: int32_t = 0x80000000 as int32_t;
19
0 commit comments