# stage2: make tests/behaviour/void.zig work with c backend · gitcafe/zig

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

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

Visibility: public

Requested revision: 4266795743d86efc763ecadbc155d068ca1ec45a

Requested commit: 4266795743d86efc763ecadbc155d068ca1ec45a

Commit: 4266795743d86efc763ecadbc155d068ca1ec45a

Tree: bec0277bd6f1e847bbbb2437d1bf64ac968e160c

Author: Matthew Hall

Committer: Andrew Kelley

## Message

```
stage2: make tests/behaviour/void.zig work with c backend

* fix initialisation of void* fields of structs (initialises to 0xaa.. rather than {})
* don't generate struct fields when the field type does not have codegen bits
* in airAlloc generate a void* literal if the element type does not have codegen bits

```

## Parents

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

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