Skip to content

Commit

Permalink
fix tests after rebasing with upstream/master
Browse files Browse the repository at this point in the history
* makes each missing switch case its own error
  • Loading branch information
g-w1 committed Dec 29, 2020
1 parent b028605 commit bafad89
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/stage2/test.zig
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,11 @@ pub fn addCases(ctx: *TestContext) !void {
\\ }
\\ unreachable; // because it will give error above
\\}
, &[_][]const u8{":5:5: error: switch must handle all possibilities"});
, &[_][]const u8{
":5:5: error: error.A not handled in switch",
":5:5: error: error.C not handled in switch",
":5:5: error: error.D not handled in switch",
});
case.addError(
\\export fn _start() noreturn {
\\ const T = error{ A, B, C, D };
Expand Down

0 comments on commit bafad89

Please sign in to comment.