| ... | @@ -1,6 +1,11 @@ | ... | @@ -1,6 +1,11 @@ |
| 1 | const tests = @import("tests.zig"); | 1 | const tests = @import("tests.zig"); |
| 2 | | 2 | |
| 3 | pub fn addCases(cases: &tests.CompileErrorContext) void { | 3 | pub fn addCases(cases: &tests.CompileErrorContext) void { |
| | 4 | cases.add("invalid field access in comptime", |
| | 5 | \\comptime { var x = doesnt_exist.whatever; } |
| | 6 | , |
| | 7 | ".tmp_source.zig:1:20: error: use of undeclared identifier 'doesnt_exist'"); |
| | 8 | |
| 4 | cases.add("suspend inside suspend block", | 9 | cases.add("suspend inside suspend block", |
| 5 | \\const std = @import("std"); | 10 | \\const std = @import("std"); |
| 6 | \\ | 11 | \\ |