]> git.lizzy.rs Git - rust.git/blob - src/test/ui/asm/bad-arch.rs
Auto merge of #75936 - sdroege:chunks-exact-construction-bounds-check, r=nagisa
[rust.git] / src / test / ui / asm / bad-arch.rs
1 // compile-flags: --target wasm32-unknown-unknown
2 // needs-llvm-components: webassembly
3
4 #![feature(no_core, lang_items, rustc_attrs)]
5 #![no_core]
6
7 #[rustc_builtin_macro]
8 macro_rules! asm {
9     () => {};
10 }
11 #[lang = "sized"]
12 trait Sized {}
13
14 fn main() {
15     unsafe {
16         asm!("");
17         //~^ ERROR asm! is unsupported on this target
18     }
19 }