blob: 4dccab5fcfac9c1af38a64074f539309fd202f41 [file]
//@ needs-asm-support
//@ run-rustfix
//@ reference: asm.options.global_asm-restriction
use std::arch::global_asm;
fn main() {}
global_asm!("", options(nomem, readonly, noreturn, 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!`