]> git.lizzy.rs Git - rust.git/blob - src/test/ui/asm/x86_64/duplicate-options.fixed
Rollup merge of #97325 - tmiasko:capture-enum-field, r=arora-aman
[rust.git] / src / test / ui / asm / x86_64 / duplicate-options.fixed
1 // only-x86_64
2 // run-rustfix
3
4 use std::arch::{asm, global_asm};
5
6 fn main() {
7     unsafe {
8         asm!("", options(nomem, ));
9         //~^ ERROR the `nomem` option was already provided
10         asm!("", options(att_syntax, ));
11         //~^ ERROR the `att_syntax` option was already provided
12         asm!("", options(nostack, att_syntax), options());
13         //~^ ERROR the `nostack` option was already provided
14         asm!("", options(nostack, ), options(), options());
15         //~^ ERROR the `nostack` option was already provided
16         //~| ERROR the `nostack` option was already provided
17         //~| ERROR the `nostack` option was already provided
18         asm!(
19             "",
20             options(nomem, noreturn),
21             options(att_syntax, ), //~ ERROR the `noreturn` option was already provided
22             options( nostack),       //~ ERROR the `nomem` option was already provided
23             options(),             //~ ERROR the `noreturn` option was already provided
24         );
25     }
26 }
27
28 global_asm!("", options(att_syntax, ));
29 //~^ ERROR the `att_syntax` option was already provided