2024-07-27 19:27:20 +02:00
|
|
|
//@ needs-asm-support
|
2024-07-26 00:20:59 +02:00
|
|
|
//@ run-rustfix
|
|
|
|
|
|
|
|
use std::arch::global_asm;
|
|
|
|
|
|
|
|
fn main() {}
|
|
|
|
|
2024-07-27 19:08:00 +02:00
|
|
|
global_asm!("", options( raw));
|
2024-07-26 00:20:59 +02: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!`
|