diff options
Diffstat (limited to 'tests/ui/feature-gates/feature-gate-asm_experimental_arch.rs')
-rw-r--r-- | tests/ui/feature-gates/feature-gate-asm_experimental_arch.rs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/ui/feature-gates/feature-gate-asm_experimental_arch.rs b/tests/ui/feature-gates/feature-gate-asm_experimental_arch.rs new file mode 100644 index 000000000..53e2a4d13 --- /dev/null +++ b/tests/ui/feature-gates/feature-gate-asm_experimental_arch.rs @@ -0,0 +1,21 @@ +// compile-flags: --target mips-unknown-linux-gnu +// needs-llvm-components: mips + +#![feature(no_core, lang_items, rustc_attrs)] +#![crate_type = "rlib"] +#![no_core] + +#[rustc_builtin_macro] +macro_rules! asm { + () => {}; +} + +#[lang = "sized"] +trait Sized {} +#[lang = "copy"] +trait Copy {} + +unsafe fn main() { + asm!(""); + //~^ ERROR inline assembly is not stable yet on this architecture +} |