diff options
| author | Eduard Burtescu <edy.burt@gmail.com> | 2016-08-02 08:14:58 +0300 |
|---|---|---|
| committer | Eduard Burtescu <edy.burt@gmail.com> | 2016-08-02 09:01:48 +0300 |
| commit | dbc3391a23df8ec0ebb130ee9f06511abddac24f (patch) | |
| tree | 10b10f8228071c81bbbcd80133bc31c814ecd04c | |
| parent | 98a516274a7f512b051c5725fdfee641281ebe0d (diff) | |
| download | rust-dbc3391a23df8ec0ebb130ee9f06511abddac24f.tar.gz rust-dbc3391a23df8ec0ebb130ee9f06511abddac24f.zip | |
tests: mark the inline asm in run-pass/issue-14936 as volatile.
| -rw-r--r-- | src/test/run-pass/issue-14936.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/run-pass/issue-14936.rs b/src/test/run-pass/issue-14936.rs index 5f8e7cb8145..428d4e4dbb1 100644 --- a/src/test/run-pass/issue-14936.rs +++ b/src/test/run-pass/issue-14936.rs @@ -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"]; |
