diff --git a/gcc/testsuite/rust/execute/inline_asm_mov_x_5.rs b/gcc/testsuite/rust/execute/torture/inline_asm_mov_x_5.rs similarity index 93% rename from gcc/testsuite/rust/execute/inline_asm_mov_x_5.rs rename to gcc/testsuite/rust/execute/torture/inline_asm_mov_x_5.rs index e09ea1a030ae..4f1555e6f2d3 100644 --- a/gcc/testsuite/rust/execute/inline_asm_mov_x_5.rs +++ b/gcc/testsuite/rust/execute/torture/inline_asm_mov_x_5.rs @@ -10,7 +10,7 @@ extern "C" { fn printf(s: *const i8, ...); } -fn main() { +fn main() -> i32 { let mut _x: i32 = 0; unsafe { asm!( @@ -19,4 +19,5 @@ fn main() { ); printf("%d\n\0" as *const str as *const i8, _x); } + 0 }