mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
add test case for #936
This commit is contained in:
parent
1098545e47
commit
c4840d78fb
1 changed files with 5 additions and 0 deletions
|
|
@ -1,6 +1,11 @@
|
|||
const tests = @import("tests.zig");
|
||||
|
||||
pub fn addCases(cases: &tests.CompileErrorContext) void {
|
||||
cases.add("invalid field access in comptime",
|
||||
\\comptime { var x = doesnt_exist.whatever; }
|
||||
,
|
||||
".tmp_source.zig:1:20: error: use of undeclared identifier 'doesnt_exist'");
|
||||
|
||||
cases.add("suspend inside suspend block",
|
||||
\\const std = @import("std");
|
||||
\\
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue