aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/error.zig
diff options
context:
space:
mode:
authorLuuk de Gram <luuk@degram.dev>2022-05-23 18:24:03 +0200
committerAndrew Kelley <andrew@ziglang.org>2022-05-24 15:34:52 -0700
commitc90a97f9be9ffef858b0e450de5006f61a12fafd (patch)
treec8ba955be7b7cd81230a2e0da39f2c36e73a681e /test/behavior/error.zig
parent3264abe3d8f658e1b7275d2be80e43eddfc098dc (diff)
downloadzig-c90a97f9be9ffef858b0e450de5006f61a12fafd.tar.gz
zig-c90a97f9be9ffef858b0e450de5006f61a12fafd.zip
codegen: Order error union fields per alignment
Based on the size of the payload the native backends will lower the error union with its fields (errorset & payload) in the correct order. e.g. ErrorA!u8 will first lower the error set's value and then the payload. In the event of ErrorA!u32 will lower the payload first.
Diffstat (limited to 'test/behavior/error.zig')
0 files changed, 0 insertions, 0 deletions