| ... | @@ -65,7 +65,7 @@ pub fn addCases(ctx: *TestContext) !void { | ... | @@ -65,7 +65,7 @@ pub fn addCases(ctx: *TestContext) !void { |
| 65 | \\} | 65 | \\} |
| 66 | \\ | 66 | \\ |
| 67 | ); | 67 | ); |
| 68 | ctx.c("exit", linux_x64, | 68 | ctx.c("exit with parameter", linux_x64, |
| 69 | \\export fn _start() noreturn { | 69 | \\export fn _start() noreturn { |
| 70 | \\ exit(0); | 70 | \\ exit(0); |
| 71 | \\} | 71 | \\} |
| ... | @@ -96,6 +96,7 @@ pub fn addCases(ctx: *TestContext) !void { | ... | @@ -96,6 +96,7 @@ pub fn addCases(ctx: *TestContext) !void { |
| 96 | \\ register size_t rax_constant __asm__("rax") = 231; | 96 | \\ register size_t rax_constant __asm__("rax") = 231; |
| 97 | \\ register size_t rdi_constant __asm__("rdi") = arg0; | 97 | \\ register size_t rdi_constant __asm__("rdi") = arg0; |
| 98 | \\ __asm volatile ("syscall" :: ""(rax_constant), ""(rdi_constant)); | 98 | \\ __asm volatile ("syscall" :: ""(rax_constant), ""(rdi_constant)); |
| | 99 | \\ zig_unreachable(); |
| 99 | \\} | 100 | \\} |
| 100 | \\ | 101 | \\ |
| 101 | ); | 102 | ); |