Skip to content

Commit 6b2672d

Browse files
author
Bruno Tavares
committed
Adds 'compiler abort in LLVM code when using a newtype-wrapper as an argument' ICE
Reference rust-lang/rust#15402
1 parent 10e8088 commit 6b2672d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/15402.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#![feature(asm)]
2+
3+
pub struct Wrapper(u32);
4+
5+
fn main() {
6+
let mut value: Wrapper = Wrapper(7);
7+
unsafe {
8+
asm!("mov %eax, $0" : "+r"(value));
9+
}
10+
}

0 commit comments

Comments
 (0)