Files
c3c/test/test_suite/globals/global_align.c3t
2023-04-28 19:11:57 +02:00

23 lines
313 B
Plaintext

// #target: macos-x64
module abc;
int foo @align(32);
fn void test()
{
int x = foo;
}
/* #expect: abc.ll
@abc.foo = local_unnamed_addr global i32 0, align 32
define void @abc.test() #0 {
entry:
%x = alloca i32, align 4
%0 = load i32, ptr @abc.foo, align 32
store i32 %0, ptr %x, align 4
ret void
}