2024-07-27 12:27:20 -05:00
|
|
|
//@ needs-asm-support
|
2024-07-25 17:20:59 -05:00
|
|
|
//@ run-rustfix
|
|
|
|
|
|
|
|
use std::arch::global_asm;
|
|
|
|
|
|
|
|
fn main() {}
|
|
|
|
|
2024-07-27 12:08:00 -05:00
|
|
|
global_asm!("", options(nomem, readonly, noreturn, raw));
|
2024-07-25 17:20:59 -05:00
|
|
|
//~^ 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!`
|