tests: mark the inline asm in run-pass/issue-14936 as volatile.

This commit is contained in:
Eduard Burtescu 2016-08-02 08:14:58 +03:00
parent 98a516274a
commit dbc3391a23

View File

@ -28,7 +28,8 @@ macro_rules! demo {
unsafe { unsafe {
asm!("mov ($1), $0" asm!("mov ($1), $0"
: $output_constraint (*wrap(&mut x, "out", &mut history)) : $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)); assert_eq!((x,y), (1,1));
let b: &[_] = &["out", "in"]; let b: &[_] = &["out", "in"];