summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/global-asm.rs
blob: 26e90edce0b189eb1613e3b6df44ae755e39fa1b (plain)
1
2
3
4
5
6
7
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
}