# stage2: get tests passing · gitcafe/zig

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

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

Visibility: public

Requested revision: 5816997ae79c6025d5f85aab0c9ab456fecadec9

Requested commit: 5816997ae79c6025d5f85aab0c9ab456fecadec9

Commit: 5816997ae79c6025d5f85aab0c9ab456fecadec9

Tree: 66e90395fe170f84e1567787538d4cbc67a63fe4

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: get tests passing

 * implement enough of ret_err_value to pass wasm tests
 * only do the proper `@panic` implementation for the backends which
   support it, which is currently only the C backend. The other backends
   will see `@breakpoint(); unreachable;` same as before.
   - I plan to do AIR memory layout reworking as a prerequisite to
     fixing other backends, because that will help me put all the
     constants up front, which will allow the codegen to lower to memory
     without jumps.
 * `@panic` is implemented using anon decls for the message. Makes it
   easier on the backends. Might want to look into re-using decls for
   this in the future.
 * implement DWARF .debug_info for pointer-like optionals.

```

## Parents

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

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