// #target: macos-x64
module test;

struct Abc
{
	int[100] x;
}
int z @noinit;
Abc y @noinit;

int a, b, c;
int x1, y1 @noinit;
tlocal int w, v;

fn void main()
{
	z = y.x[0];
}

/* #expect: test.ll

@test.z = local_unnamed_addr global i32 undef, align 4
@test.y = local_unnamed_addr global %Abc undef, align 4
@test.a = local_unnamed_addr global i32 0, align 4
@test.b = local_unnamed_addr global i32 0, align 4
@test.c = local_unnamed_addr global i32 0, align 4
@test.x1 = local_unnamed_addr global i32 undef, align 4
@test.y1 = local_unnamed_addr global i32 undef, align 4
@test.w = thread_local local_unnamed_addr global i32 0, align 4
@test.v = thread_local local_unnamed_addr global i32 0, align 4

%0 = load i32, ptr @test.y, align 4
store i32 %0, ptr @test.z, align 4
