Skip to content

Commit

Permalink
Fix return type of asm mov 5 to i32:0, tortured
Browse files Browse the repository at this point in the history
gcc/testsuite/ChangeLog:

	* rust/execute/inline_asm_mov_x_5.rs: Move to...
	* rust/execute/torture/inline_asm_mov_x_5.rs: ...here.
  • Loading branch information
badumbatish authored and CohenArthur committed Sep 2, 2024
1 parent c324dcf commit 73a1510
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ extern "C" {
fn printf(s: *const i8, ...);
}

fn main() {
fn main() -> i32 {
let mut _x: i32 = 0;
unsafe {
asm!(
Expand All @@ -19,4 +19,5 @@ fn main() {
);
printf("%d\n\0" as *const str as *const i8, _x);
}
0
}

0 comments on commit 73a1510

Please sign in to comment.