about summary refs log tree commit diff
path: root/tests/ui/asm/unsupported-option.fixed
blob: d313d8028b6c271d0a753a54012c3e71496b12b4 (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(   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!`