Commit c741d3f4b2

Andrew Kelley <superjoe30@gmail.com>
2018-01-03 09:15:06
add test for while respecting implicit comptime
1 parent d9d61ed
Changed files (1)
test
cases
test/cases/misc.zig
@@ -571,3 +571,9 @@ fn testComptimeIfInsideRuntimeWhileWhichUnconditionallyBreaks(cond: bool) {
         break;
     }
 }
+
+test "implicit comptime while" {
+    while (false) {
+        @compileError("bad");
+    }
+}