Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

Commit 59e5517

Browse files
committed
Merge pull request #19 from bltavares/15402
15402
2 parents 58967d4 + 6b2672d commit 59e5517

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/15402.rs

+10
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)