# Zcu: allow test declarations to be failed · gitcafe/zig

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

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

Visibility: public

Requested revision: 9f086f84f53de4eb23d96fe611c071f27405a660

Requested commit: 9f086f84f53de4eb23d96fe611c071f27405a660

Commit: 9f086f84f53de4eb23d96fe611c071f27405a660

Tree: aa40346ae5fdadd6121fef59aa203c88cd744956

Author: mlugg

Committer: mlugg

## Message

```
Zcu: allow test declarations to be failed

The introduction of the `extended(astgen_error())` instruction allows a
`test` declaration to be unresolved, i.e. the declaration doesn't even
contain a `func`. I could modify AstGen to not do this, but it makes
more sense to just handle this case when collecting test functions.

Note that tests under incremental compilation are currently broken if
you ever remove all references to a test; this is tracked as a subtask
of #21165.

```

## Parents

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

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