# Sema: do not analyze test decls when not in test mode · gitcafe/zig

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

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

Visibility: public

Requested revision: fa6bb4b662155e4d6a61cc551b5d02a2a7d5d144

Requested commit: fa6bb4b662155e4d6a61cc551b5d02a2a7d5d144

Commit: fa6bb4b662155e4d6a61cc551b5d02a2a7d5d144

Tree: 23fb0d451b9aefa61c21cb7f1ffb40ec83dd57ef

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
Sema: do not analyze test decls when not in test mode

We do this by reserving string table indexes 0 and 1 in ZIR to be
special. Decls now have 0 to mean comptime or usingnamespace, and 1 to
mean an unnamed test decl.

```

## Parents

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

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