# behavior: disable some tests under the C backend targeting MSVC · gitcafe/zig

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

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

Visibility: public

Requested revision: 143144604497b5cc7c70009f9f567117d35b944d

Requested commit: 143144604497b5cc7c70009f9f567117d35b944d

Commit: 143144604497b5cc7c70009f9f567117d35b944d

Tree: fe3c32908a363d831955f9a60eed50c922378616

Author: Matthew Lugg

Committer: Matthew Lugg

## Message

```
behavior: disable some tests under the C backend targeting MSVC

The bugs here actually exist on master branch too, but they are being
caught by the new static assertions which check type size and alignment.
It turns out that MSVC's struct/union "pack" pragma and its "align"
declspec interact in undocumented ways which are extremely problematic
for generated code. Solving this will require changing how the C backend
lowers various types; the disabled tests are all tagged unions, but
there are also issues with structs with underaligned fields which the
behavior tests just happen to not currently be triggering.

```

## Parents

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

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