Sema: implement pointer to tuple to pointer to array coercion

This involved an LLVM backend fix for the aggregate_init instruction.
This commit is contained in:
Andrew Kelley
2022-03-09 18:47:42 -07:00
parent 017d3864de
commit f736cde397
8 changed files with 80 additions and 41 deletions

View File

@@ -760,7 +760,8 @@ test "pointer to thread local array" {
threadlocal var buffer: [11]u8 = undefined;
test "auto created variables have correct alignment" {
if (builtin.zig_backend != .stage1) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
const S = struct {
fn foo(str: [*]const u8) u32 {