Files
rust/tests/ui/asm/unsupported-option.fixed
T
2026-02-28 11:39:26 -05:00

13 lines
363 B
Rust

//@ needs-asm-support
//@ run-rustfix
//@ reference: asm.options.global_asm-restriction
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!`