aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/asm_at_compile_time.zig
blob: 6edbd18a51bf89a2a438532f78596eb8c8d2b3f2 (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 evalutate comptime expression
// :2:14: note: called from here