Skip to content

Commit

Permalink
Add test for issue-54067
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor committed Apr 16, 2020
1 parent f0f4653 commit 2687894
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/test/ui/asm/issue-54067.rs
Original file line number Diff line number Diff line change
@@ -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() {}

0 comments on commit 2687894

Please sign in to comment.