]> git.proxmox.com Git - rustc.git/blob - src/test/ui/asm/aarch64/interpolated-idents.rs
New upstream version 1.57.0+dfsg1
[rustc.git] / src / test / ui / asm / aarch64 / interpolated-idents.rs
1 // only-aarch64
2
3 #![feature(asm)]
4
5 macro_rules! m {
6 ($in:ident $out:ident $lateout:ident $inout:ident $inlateout:ident $const:ident $sym:ident
7 $pure:ident $nomem:ident $readonly:ident $preserves_flags:ident
8 $noreturn:ident $nostack:ident $options:ident) => {
9 unsafe {
10 asm!("", $in(x) x, $out(x) x, $lateout(x) x, $inout(x) x, $inlateout(x) x,
11 //~^ ERROR asm outputs are not allowed with the `noreturn` option
12 const x, sym x,
13 $options($pure, $nomem, $readonly, $preserves_flags, $noreturn, $nostack));
14 //~^ ERROR the `nomem` and `readonly` options are mutually exclusive
15 //~| ERROR the `pure` and `noreturn` options are mutually exclusive
16 }
17 };
18 }
19
20 fn main() {
21 m!(in out lateout inout inlateout const sym
22 pure nomem readonly preserves_flags
23 noreturn nostack options);
24 }