about summary refs log tree commit diff
path: root/tests/ui/asm/unsupported-option.rs
blob: d75f8e7f5693e6bca998c9c6b252c5efb62e2f4b (plain)
1
2
3
4
5
6
7
8
9
10
11
//@ needs-asm-support
//@ run-rustfix

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!`