commit c741d3f4b20d2c4e6972427a0499e0e8841ba6d5 (tree) parent d9d61ed5631cdbde26b62693f233c3473b3ae917 Author: Andrew Kelley <superjoe30@gmail.com> Date: Wed, 3 Jan 2018 03:15:06 -0500 add test for while respecting implicit comptime Diffstat:
| M | test/cases/misc.zig | | | 6 | ++++++ |
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/test/cases/misc.zig b/test/cases/misc.zig @@ -571,3 +571,9 @@ fn testComptimeIfInsideRuntimeWhileWhichUnconditionallyBreaks(cond: bool) { break; } } + +test "implicit comptime while" { + while (false) { + @compileError("bad"); + } +}