Skip to content

Commit

Permalink
fix broken test cases exposed by ec445fb
Browse files Browse the repository at this point in the history
shoulda rebased
  • Loading branch information
Vexu authored and truemedian committed Mar 30, 2023
1 parent 1d46f92 commit acbd5c9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions test/cases/compile_errors/for_loop_break_value_ignored.zig
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ export fn f1() void {
// target=native
//
// :6:5: error: incompatible types: 'usize' and 'void'
// :7:22: note: type 'usize' here
4 changes: 2 additions & 2 deletions test/cases/compile_errors/missing_else_clause.zig
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ export fn entry() void {
// target=native
//
// :2:21: error: incompatible types: 'i32' and 'void'
// :6:25: note: type 'i32' here
// :6:15: error: incompatible types: 'i32' and 'void'
// :2:31: note: type 'i32' here
// :6:15: error: incompatible types: 'i32' and 'void'
// :6:25: note: type 'i32' here
// :12:16: error: expected type 'tmp.h.T', found 'void'
// :11:15: note: struct declared here
// :18:9: error: incompatible types: 'void' and 'tmp.k.T'
2 changes: 2 additions & 0 deletions test/cases/compile_errors/while_loop_break_value_ignored.zig
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@ export fn f2() void {
// target=native
//
// :7:5: error: incompatible types: 'usize' and 'void'
// :8:22: note: type 'usize' here
// :14:12: error: incompatible types: 'usize' and 'void'
// :16:33: note: type 'usize' here

0 comments on commit acbd5c9

Please sign in to comment.