| author | |
| committer | |
| log | c741d3f4b20d2c4e6972427a0499e0e8841ba6d5 |
| tree | 771d0a894e40b6f49828463f4ee62b96c16636c5 |
| parent | d9d61ed5631cdbde26b62693f233c3473b3ae917 |
1 files changed, 6 insertions(+), 0 deletions(-)
test/cases/misc.zig+6| ... | ... | @@ -571,3 +571,9 @@ fn testComptimeIfInsideRuntimeWhileWhichUnconditionallyBreaks(cond: bool) { |
| 571 | 571 | break; |
| 572 | 572 | } |
| 573 | 573 | } |
| 574 | ||
| 575 | test "implicit comptime while" { | |
| 576 | while (false) { | |
| 577 | @compileError("bad"); | |
| 578 | } | |
| 579 | } |