commit f639cb33a9acf71e32fb69882cf59250148cfaff (tree)
parent 844b77e3bc91960b3be11c3b4bf08bdb3aedd756
Author: Andrew Kelley <andrew@ziglang.org>
Date: Tue, 5 Jul 2022 16:22:07 -0700
fix expected error messages in test cases
Diffstat:
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/test/cases/compile_errors/asm_at_compile_time.zig b/test/cases/compile_errors/asm_at_compile_time.zig
@@ -14,4 +14,5 @@ fn doSomeAsm() void {
// backend=llvm
// target=native
//
-// :6:5: error: unable to evaluate constant expression
+// :6:5: error: unable to resolve comptime value
+// :2:14: note: called from here
diff --git a/test/cases/compile_errors/duplicate_error_in_switch.zig b/test/cases/compile_errors/duplicate_error_in_switch.zig
@@ -8,8 +8,8 @@ export fn entry() void {
}
fn foo(x: i32) !void {
switch (x) {
- 0 ... 10 => return error.Foo,
- 11 ... 20 => return error.Bar,
+ 0...10 => return error.Foo,
+ 11...20 => return error.Bar,
else => {},
}
}
@@ -19,4 +19,4 @@ fn foo(x: i32) !void {
// target=native
//
// :5:9: error: duplicate switch value
-// :3:9: note: other value here
+// :3:9: note: previous value here