aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/setAlignStack_in_inline_function.zig
blob: a84424e368c02b9bff5e4a104d95402ff86066a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
export fn entry() void {
    foo();
}
inline fn foo() void {
    @setAlignStack(16);
}

export fn entry1() void {
    comptime bar();
}
fn bar() void {
    @setAlignStack(16);
}

// error
// backend=stage2
// target=native
//
// :5:5: error: @setAlignStack in inline function
// :2:8: note: called from here
// :12:5: error: @setAlignStack in inline call
// :9:17: note: called from here