# AstGen: fix \`while\` and \`for\` with unreachable bodies · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/c4df9bf56f204f63f4e87255933ba453d69d0182)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: c4df9bf56f204f63f4e87255933ba453d69d0182

Requested commit: c4df9bf56f204f63f4e87255933ba453d69d0182

Commit: c4df9bf56f204f63f4e87255933ba453d69d0182

Tree: 647cec61769d5723385f8ac9b1392b3c935a219b

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
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.

```

## Parents

- [61a53a587558ff1fe1b0ec98bb424022885edccf](https://git.cafe/gitcafe/zig/commit/61a53a587558ff1fe1b0ec98bb424022885edccf?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/c4df9bf56f204f63f4e87255933ba453d69d0182?format=markdown)
