| ... | @@ -24,7 +24,9 @@ pub fn addCases(ctx: *TestContext) !void { | ... | @@ -24,7 +24,9 @@ pub fn addCases(ctx: *TestContext) !void { |
| 24 | { | 24 | { |
| 25 | var case = ctx.exe("hello world with updates", linux_x64); | 25 | var case = ctx.exe("hello world with updates", linux_x64); |
| 26 | | 26 | |
| 27 | case.addError("", &[_][]const u8{"error: no entry point found"}); | 27 | case.addError("", &[_][]const u8{ |
| | 28 | ":84:9: error: struct 'test_case.test_case' has no member named 'main'", |
| | 29 | }); |
| 28 | | 30 | |
| 29 | // Incorrect return type | 31 | // Incorrect return type |
| 30 | case.addError( | 32 | case.addError( |
| ... | @@ -321,7 +323,7 @@ pub fn addCases(ctx: *TestContext) !void { | ... | @@ -321,7 +323,7 @@ pub fn addCases(ctx: *TestContext) !void { |
| 321 | { | 323 | { |
| 322 | var case = ctx.exe("multiplying numbers at runtime and comptime", linux_x64); | 324 | var case = ctx.exe("multiplying numbers at runtime and comptime", linux_x64); |
| 323 | case.addCompareOutput( | 325 | case.addCompareOutput( |
| 324 | \\export fn _start() noreturn { | 326 | \\pub export fn _start() noreturn { |
| 325 | \\ mul(3, 4); | 327 | \\ mul(3, 4); |
| 326 | \\ | 328 | \\ |
| 327 | \\ exit(); | 329 | \\ exit(); |
| ... | @@ -345,7 +347,7 @@ pub fn addCases(ctx: *TestContext) !void { | ... | @@ -345,7 +347,7 @@ pub fn addCases(ctx: *TestContext) !void { |
| 345 | ); | 347 | ); |
| 346 | // comptime function call | 348 | // comptime function call |
| 347 | case.addCompareOutput( | 349 | case.addCompareOutput( |
| 348 | \\export fn _start() noreturn { | 350 | \\pub export fn _start() noreturn { |
| 349 | \\ exit(); | 351 | \\ exit(); |
| 350 | \\} | 352 | \\} |
| 351 | \\ | 353 | \\ |
| ... | @@ -369,7 +371,7 @@ pub fn addCases(ctx: *TestContext) !void { | ... | @@ -369,7 +371,7 @@ pub fn addCases(ctx: *TestContext) !void { |
| 369 | ); | 371 | ); |
| 370 | // Inline function call | 372 | // Inline function call |
| 371 | case.addCompareOutput( | 373 | case.addCompareOutput( |
| 372 | \\export fn _start() noreturn { | 374 | \\pub export fn _start() noreturn { |
| 373 | \\ var x: usize = 5; | 375 | \\ var x: usize = 5; |
| 374 | \\ const y = mul(2, 3, x); | 376 | \\ const y = mul(2, 3, x); |
| 375 | \\ exit(y - 30); | 377 | \\ exit(y - 30); |