| author | |
| committer | |
| log | 20bcdab462dc21dc912da3ce4deb432a81cbc3c5 |
| tree | b1cdd674cfbe448e5563f8f63c39a0c84ffbd909 |
| parent | a0ca30ce014f4abd9d31ea335e8860fd1b110495 |
| signature | Commit is signed but in an unrecognized format. |
2 files changed, 9 insertions(+), 0 deletions(-)
src/codegen.cpp+2| ... | ... | @@ -8459,6 +8459,8 @@ static Error define_builtin_compile_vars(CodeGen *g) { |
| 8459 | 8459 | cache_buf(&cache_hash, compiler_id); |
| 8460 | 8460 | cache_int(&cache_hash, g->build_mode); |
| 8461 | 8461 | cache_bool(&cache_hash, g->strip_debug_symbols); |
| 8462 | cache_int(&cache_hash, g->out_type); | |
| 8463 | cache_bool(&cache_hash, g->is_dynamic); | |
| 8462 | 8464 | cache_bool(&cache_hash, g->is_test_build); |
| 8463 | 8465 | cache_bool(&cache_hash, g->is_single_threaded); |
| 8464 | 8466 | cache_int(&cache_hash, g->zig_target->is_native); |
test/compile_errors.zig+7| ... | ... | @@ -6,6 +6,13 @@ pub fn addCases(cases: *tests.CompileErrorContext) void { |
| 6 | 6 | \\export async fn foo() void {} |
| 7 | 7 | , "tmp.zig:1:1: error: exported function cannot be async"); |
| 8 | 8 | |
| 9 | cases.addExe( | |
| 10 | "main missing name", | |
| 11 | \\pub fn (main) void {} | |
| 12 | , | |
| 13 | "tmp.zig:1:5: error: missing function name", | |
| 14 | ); | |
| 15 | ||
| 9 | 16 | cases.addCase(x: { |
| 10 | 17 | var tc = cases.create("@newStackCall on unsupported target", |
| 11 | 18 | \\export fn entry() void { |