fix expected error messages in test cases

This commit is contained in:
Andrew Kelley 2022-07-05 16:22:07 -07:00
parent 844b77e3bc
commit f639cb33a9
2 changed files with 5 additions and 4 deletions

View File

@ -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

View File

@ -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