Skip to content

Commit f81a721

Browse files
jacobly0andrewrk
authored andcommitted
standalone: fix misaligned stack crash
1 parent 5144f10 commit f81a721

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/standalone/stack_iterator/unwind_freestanding.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ noinline fn frame0(expected: *[4]usize, unwound: *[4]usize) void {
3737
}
3838

3939
// No-OS entrypoint
40-
export fn _start() callconv(.c) noreturn {
40+
export fn _start() callconv(.withStackAlign(.c, 1)) noreturn {
4141
var expected: [4]usize = undefined;
4242
var unwound: [4]usize = undefined;
4343
frame0(&expected, &unwound);

0 commit comments

Comments
 (0)