mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
23 lines
313 B
Plaintext
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
|
|
}
|