tests: mark the inline asm in run-pass/issue-14936 as volatile.
This commit is contained in:
parent
98a516274a
commit
dbc3391a23
@ -28,7 +28,8 @@ macro_rules! demo {
|
||||
unsafe {
|
||||
asm!("mov ($1), $0"
|
||||
: $output_constraint (*wrap(&mut x, "out", &mut history))
|
||||
: "r"(&wrap(y, "in", &mut history)));
|
||||
: "r"(&wrap(y, "in", &mut history))
|
||||
:: "volatile");
|
||||
}
|
||||
assert_eq!((x,y), (1,1));
|
||||
let b: &[_] = &["out", "in"];
|
||||
|
Loading…
Reference in New Issue
Block a user