Skip to content

Commit dbc3391

Browse files
committed
tests: mark the inline asm in run-pass/issue-14936 as volatile.
1 parent 98a5162 commit dbc3391

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/run-pass/issue-14936.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ macro_rules! demo {
2828
unsafe {
2929
asm!("mov ($1), $0"
3030
: $output_constraint (*wrap(&mut x, "out", &mut history))
31-
: "r"(&wrap(y, "in", &mut history)));
31+
: "r"(&wrap(y, "in", &mut history))
32+
:: "volatile");
3233
}
3334
assert_eq!((x,y), (1,1));
3435
let b: &[_] = &["out", "in"];

0 commit comments

Comments
 (0)