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 {...@@ -14,4 +14,5 @@ fn doSomeAsm() void {
14// backend=llvm14// backend=llvm
15// target=native15// target=native
16//16//
17// :6:5: error: unable to evaluate constant expression17// :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 {...@@ -8,8 +8,8 @@ export fn entry() void {
8}8}
9fn foo(x: i32) !void {9fn foo(x: i32) !void {
10 switch (x) {10 switch (x) {
11 0 ... 10 => return error.Foo,11 0...10 => return error.Foo,
12 11 ... 20 => return error.Bar,12 11...20 => return error.Bar,
13 else => {},13 else => {},
14 }14 }
15}15}
...@@ -19,4 +19,4 @@ fn foo(x: i32) !void {...@@ -19,4 +19,4 @@ fn foo(x: i32) !void {
19// target=native19// target=native
20//20//
21// :5:9: error: duplicate switch value21// :5:9: error: duplicate switch value
22// :3:9: note: other value here22// :3:9: note: previous value here