File tree Expand file tree Collapse file tree 4 files changed +54
-0
lines changed
c2rust-transpile/tests/snapshots Expand file tree Collapse file tree 4 files changed +54
-0
lines changed Original file line number Diff line number Diff line change
1
+ #include <stdint.h>
2
+ uint32_t var ;
Original file line number Diff line number Diff line change
1
+ #![ allow(
2
+ dead_code,
3
+ mutable_transmutes,
4
+ non_camel_case_types,
5
+ non_snake_case,
6
+ non_upper_case_globals,
7
+ unused_assignments,
8
+ unused_mut
9
+ ) ]
10
+ pub type __uint32_t = u32 ;
11
+ pub type uint32_t = __uint32_t ;
12
+ #[ no_mangle]
13
+ pub static mut var: uint32_t = 0 ;
Original file line number Diff line number Diff line change
1
+ -- -
2
+ source : c2rust - transpile / tests / snapshots .rs
3
+ assertion_line : 67
4
+ expression : cat tests / snapshots / platform - specific / uint32 .rs
5
+ input_file : c2rust - transpile / tests / snapshots / platform - specific / uint32 .c
6
+ -- -
7
+ #! [allow (
8
+ dead_code ,
9
+ mutable_transmutes ,
10
+ non_camel_case_types ,
11
+ non_snake_case ,
12
+ non_upper_case_globals ,
13
+ unused_assignments ,
14
+ unused_mut
15
+ )]
16
+ pub type __uint32_t = u32 ;
17
+ pub type uint32_t = __uint32_t ;
18
+ #[no_mangle ]
19
+ pub static mut var : uint32_t = 0 ;
20
+
Original file line number Diff line number Diff line change
1
+ -- -
2
+ source : c2rust - transpile / tests / snapshots .rs
3
+ assertion_line : 67
4
+ expression : cat tests / snapshots / platform - specific / uint32 .rs
5
+ input_file : c2rust - transpile / tests / snapshots / platform - specific / uint32 .c
6
+ -- -
7
+ #! [allow (
8
+ dead_code ,
9
+ mutable_transmutes ,
10
+ non_camel_case_types ,
11
+ non_snake_case ,
12
+ non_upper_case_globals ,
13
+ unused_assignments ,
14
+ unused_mut
15
+ )]
16
+ pub type uint32_t = u32 ;
17
+ #[no_mangle ]
18
+ pub static mut var : uint32_t = 0 ;
19
+
You can’t perform that action at this time.
0 commit comments