Skip to content

Commit 2687894

Browse files
committed
Add test for issue-54067
1 parent f0f4653 commit 2687894

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/test/ui/asm/issue-54067.rs

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// check-pass
2+
// ignore-emscripten no llvm_asm! support
3+
4+
#![feature(llvm_asm)]
5+
6+
pub fn boot(addr: Option<u32>) {
7+
unsafe {
8+
llvm_asm!("mov sp, $0"::"r" (addr));
9+
}
10+
}
11+
12+
fn main() {}

0 commit comments

Comments
 (0)