diff options
author | badumbatish <tanghocle456@gmail.com> | 2024-08-28 00:15:14 -0700 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-03-19 15:32:07 +0100 |
commit | 4d366e3da3d3f46aa7c7545bb127bb91c7049666 (patch) | |
tree | e01e95eb90aca690c640fa5931d615fb80db86ee /gcc/testsuite | |
parent | 23eb5d2c3a03e262e164342c18dfb8f61017f01f (diff) | |
download | gcc-4d366e3da3d3f46aa7c7545bb127bb91c7049666.zip gcc-4d366e3da3d3f46aa7c7545bb127bb91c7049666.tar.gz gcc-4d366e3da3d3f46aa7c7545bb127bb91c7049666.tar.bz2 |
gccrs: Fix return type of asm mov 5 to i32:0, tortured
gcc/testsuite/ChangeLog:
* rust/execute/inline_asm_mov_x_5.rs: Move to...
* rust/execute/torture/inline_asm_mov_x_5.rs: ...here.
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/rust/execute/torture/inline_asm_mov_x_5.rs (renamed from gcc/testsuite/rust/execute/inline_asm_mov_x_5.rs) | 3 |
1 files changed, 2 insertions, 1 deletions
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 index e09ea1a..4f1555e 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 } |