mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
fix expected error messages in test cases
This commit is contained in:
parent
844b77e3bc
commit
f639cb33a9
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user