| author | |
| committer | |
| log | f639cb33a9acf71e32fb69882cf59250148cfaff |
| tree | 8f36c6e32d98c5e48d49a7029fc4fda8bfb128b9 |
| parent | 844b77e3bc91960b3be11c3b4bf08bdb3aedd756 |
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=llvm | 14 | // backend=llvm |
| 15 | // target=native | 15 | // target=native |
| 16 | // | 16 | // |
| 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 { | ... | @@ -8,8 +8,8 @@ export fn entry() void { |
| 8 | } | 8 | } |
| 9 | fn foo(x: i32) !void { | 9 | fn 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=native | 19 | // target=native |
| 20 | // | 20 | // |
| 21 | // :5:9: error: duplicate switch value | 21 | // :5:9: error: duplicate switch value |
| 22 | // :3:9: note: other value here | 22 | // :3:9: note: previous value here |