diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2022-05-07 00:57:55 +0200 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2022-05-07 00:57:55 +0200 |
| commit | ac954eb539ec242af568fe3565094cea12c4beea (patch) | |
| tree | 388b3c11137f23393ff877699f86df4b43666501 /test/behavior/align.zig | |
| parent | ac1aaec9c38eb44b93099ff18579a9401f107100 (diff) | |
| download | zig-ac954eb539ec242af568fe3565094cea12c4beea.tar.gz zig-ac954eb539ec242af568fe3565094cea12c4beea.zip | |
regalloc: ensure we only freeze/unfreeze at the outermost scope
This prevents a nasty type of bugs where we accidentally unfreeze
a register that was frozen purposely in the outer scope, risking
accidental realloc of a taken register.
Fix CF flags spilling on aarch64 backend.
Diffstat (limited to 'test/behavior/align.zig')
| -rw-r--r-- | test/behavior/align.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/behavior/align.zig b/test/behavior/align.zig index 18a55f6653..563f937822 100644 --- a/test/behavior/align.zig +++ b/test/behavior/align.zig @@ -7,6 +7,7 @@ var foo: u8 align(4) = 100; test "global variable alignment" { if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO + if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO comptime try expect(@typeInfo(@TypeOf(&foo)).Pointer.alignment == 4); comptime try expect(@TypeOf(&foo) == *align(4) u8); |
