rustc/tests/ui/asm/unsupported-option.fixed
2024-10-21 11:08:01 +02:00

12 lines
313 B
Plaintext

//@ needs-asm-support
//@ run-rustfix
use std::arch::global_asm;
fn main() {}
global_asm!("", options( raw));
//~^ ERROR the `nomem` option cannot be used with `global_asm!`
//~| ERROR the `readonly` option cannot be used with `global_asm!`
//~| ERROR the `noreturn` option cannot be used with `global_asm!`