rust/tests/ui/macros/global-asm.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
241 B
Rust
Raw Normal View History

use std::arch::global_asm;
fn main() {
global_asm!(); //~ ERROR requires at least a template string argument
global_asm!(struct); //~ ERROR expected expression
global_asm!(123); //~ ERROR asm template must be a string literal
}