diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-01-15 14:11:55 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-01-15 14:11:55 -0800 |
| commit | 9b7bc456ea7068fe6d24de995e083c3ea1e1ddaa (patch) | |
| tree | 779763cb0fc6c9365f1ad46c7436facda387ce8e /src/test/compile-fail | |
| parent | b86a84867a31a04b9e9c35efc313b2961312def2 (diff) | |
| parent | 31261fd629265aead5f0bdb45774067966896b1b (diff) | |
| download | rust-9b7bc456ea7068fe6d24de995e083c3ea1e1ddaa.tar.gz rust-9b7bc456ea7068fe6d24de995e083c3ea1e1ddaa.zip | |
rollup merge of #21144: nagisa/asm-str-fix
Fixes #21045
Diffstat (limited to 'src/test/compile-fail')
| -rw-r--r-- | src/test/compile-fail/issue-21045.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/compile-fail/issue-21045.rs b/src/test/compile-fail/issue-21045.rs new file mode 100644 index 00000000000..134240f8c8a --- /dev/null +++ b/src/test/compile-fail/issue-21045.rs @@ -0,0 +1,16 @@ +// Copyright 2014 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. +#![feature(asm)] + +fn main() { + let a; + asm!("nop" "nop"); //~ ERROR malformed inline assembly + asm!("nop" "nop" : "=r"(a)); //~ ERROR malformed inline assembly +} |
