diff options
author | badumbatish <tanghocle456@gmail.com> | 2024-08-28 00:15:14 -0700 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2024-09-02 09:44:55 +0000 |
commit | 73a1510814b281ab98dbd9c2790f5c3e72d2d231 (patch) | |
tree | 8d441afdd87b4db6982f791bd9314fe67b8c21fd | |
parent | c324dcf459d2e67f2c9773394f7b534022561fc5 (diff) | |
download | gcc-73a1510814b281ab98dbd9c2790f5c3e72d2d231.zip gcc-73a1510814b281ab98dbd9c2790f5c3e72d2d231.tar.gz gcc-73a1510814b281ab98dbd9c2790f5c3e72d2d231.tar.bz2 |
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.
-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 } |