diff --git a/src/15402.rs b/src/15402.rs new file mode 100644 index 00000000..4c8ffa86 --- /dev/null +++ b/src/15402.rs @@ -0,0 +1,10 @@ +#![feature(asm)] + +pub struct Wrapper(u32); + +fn main() { + let mut value: Wrapper = Wrapper(7); + unsafe { + asm!("mov %eax, $0" : "+r"(value)); + } +}