Skip to content

Commit

Permalink
add test for while respecting implicit comptime
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrk committed Jan 3, 2018
1 parent d9d61ed commit c741d3f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/cases/misc.zig
Expand Up @@ -571,3 +571,9 @@ fn testComptimeIfInsideRuntimeWhileWhichUnconditionallyBreaks(cond: bool) {
break;
}
}

test "implicit comptime while" {
while (false) {
@compileError("bad");
}
}

0 comments on commit c741d3f

Please sign in to comment.