diff options
| author | Jimmi Holst Christensen <jhc@dismail.de> | 2022-01-20 22:46:15 +0100 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-01-23 17:23:55 -0500 |
| commit | f1b91bb41b2d810ecabf4c69cad91b24b3846b77 (patch) | |
| tree | 59416bc00443451485832f6d1a1ce4b3d3357c58 /test/behavior/struct.zig | |
| parent | 7287c7482a2c694c7c7f56b9f7c1744a7ae7905f (diff) | |
| download | zig-f1b91bb41b2d810ecabf4c69cad91b24b3846b77.tar.gz zig-f1b91bb41b2d810ecabf4c69cad91b24b3846b77.zip | |
c backend: Implement aligning fields and local/global variables
There are some restrictions here.
- We either need C11 or a compiler that supports the aligned attribute
- We cannot provide align less than the type's natural C alignment.
Diffstat (limited to 'test/behavior/struct.zig')
| -rw-r--r-- | test/behavior/struct.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/behavior/struct.zig b/test/behavior/struct.zig index 40310f8add..7ff67e1c90 100644 --- a/test/behavior/struct.zig +++ b/test/behavior/struct.zig @@ -201,6 +201,8 @@ test "struct field init with catch" { } test "packed struct field alignment" { + if (builtin.object_format == .c) return error.SkipZigTest; + const Stage1 = struct { var baz: packed struct { a: u32, |
