diff options
Diffstat (limited to 'src/test/ui/llvm-asm/issue-54067.rs')
| -rw-r--r-- | src/test/ui/llvm-asm/issue-54067.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/llvm-asm/issue-54067.rs b/src/test/ui/llvm-asm/issue-54067.rs new file mode 100644 index 00000000000..f2e097222bd --- /dev/null +++ b/src/test/ui/llvm-asm/issue-54067.rs @@ -0,0 +1,12 @@ +// check-pass +// ignore-emscripten no llvm_asm! support + +#![feature(llvm_asm)] + +pub fn boot(addr: Option<u32>) { + unsafe { + llvm_asm!("mov sp, $0"::"r" (addr)); + } +} + +fn main() {} |
