aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/underscore.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-10-02 20:15:03 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-10-02 20:15:03 -0700
commitc4df9bf56f204f63f4e87255933ba453d69d0182 (patch)
tree647cec61769d5723385f8ac9b1392b3c935a219b /test/behavior/underscore.zig
parent61a53a587558ff1fe1b0ec98bb424022885edccf (diff)
downloadzig-c4df9bf56f204f63f4e87255933ba453d69d0182.tar.gz
zig-c4df9bf56f204f63f4e87255933ba453d69d0182.zip
AstGen: fix `while` and `for` with unreachable bodies
Companion commit to 61a53a587558ff1fe1b0ec98bb424022885edccf. This commit also moves over a bunch of behavior test cases to the passing-for-stage2 section.
Diffstat (limited to 'test/behavior/underscore.zig')
-rw-r--r--test/behavior/underscore.zig11
1 files changed, 0 insertions, 11 deletions
diff --git a/test/behavior/underscore.zig b/test/behavior/underscore.zig
index abe219f3e0..b701aac044 100644
--- a/test/behavior/underscore.zig
+++ b/test/behavior/underscore.zig
@@ -5,17 +5,6 @@ test "ignore lval with underscore" {
_ = false;
}
-test "ignore lval with underscore (for loop)" {
- for ([_]void{}) |_, i| {
- _ = i;
- for ([_]void{}) |_, j| {
- _ = j;
- break;
- }
- break;
- }
-}
-
test "ignore lval with underscore (while loop)" {
while (optionalReturnError()) |_| {
while (optionalReturnError()) |_| {