authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-07-05 16:22:07-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-07-05 16:22:53-07:00
logf639cb33a9acf71e32fb69882cf59250148cfaff
tree8f36c6e32d98c5e48d49a7029fc4fda8bfb128b9
parent844b77e3bc91960b3be11c3b4bf08bdb3aedd756

fix expected error messages in test cases


2 files changed, 5 insertions(+), 4 deletions(-)

test/cases/compile_errors/asm_at_compile_time.zig+2-1
......@@ -14,4 +14,5 @@ fn doSomeAsm() void {
1414// backend=llvm
1515// target=native
1616//
17// :6:5: error: unable to evaluate constant expression
17// :6:5: error: unable to resolve comptime value
18// :2:14: note: called from here
test/cases/compile_errors/duplicate_error_in_switch.zig+3-3
......@@ -8,8 +8,8 @@ export fn entry() void {
88}
99fn foo(x: i32) !void {
1010 switch (x) {
11 0 ... 10 => return error.Foo,
12 11 ... 20 => return error.Bar,
11 0...10 => return error.Foo,
12 11...20 => return error.Bar,
1313 else => {},
1414 }
1515}
......@@ -19,4 +19,4 @@ fn foo(x: i32) !void {
1919// target=native
2020//
2121// :5:9: error: duplicate switch value
22// :3:9: note: other value here
22// :3:9: note: previous value here