aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/asm_at_compile_time.zig
blob: 49624d68052b0933a2bfe9577ba2d48ee7b0fca7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
comptime {
    doSomeAsm();
}

fn doSomeAsm() void {
    asm volatile (
        \\.globl aoeu;
        \\.type aoeu, @function;
        \\.set aoeu, derp;
    );
}

// error
// backend=llvm
// target=native
//
// :6:5: error: unable to evaluate comptime expression
// :2:14: note: called from here