# wasm: Implement 'zig test' · gitcafe/zig

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

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

Visibility: public

Requested revision: dd49eca34274cd2396cbe06a199fe8db9e8faf79

Requested commit: dd49eca34274cd2396cbe06a199fe8db9e8faf79

Commit: dd49eca34274cd2396cbe06a199fe8db9e8faf79

Tree: 928ab49cdd2021db17a83f7bb5c5f3cb19e10bef

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
wasm: Implement 'zig test'

- This implements the required codegen for decl types such as pointers, arrays, structs and more.
- Wasm's start function can now use both a 'u8' and 'void' as return type. This will help us with writing tests
using the stage2 testing backend. (Until all tests of behavioural tests pass).
- Now correctly generates relocations for function pointers.
- Also implements unwrapping error union error, as well as return pointers.

```

## Parents

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

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