mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
28 lines
427 B
C
28 lines
427 B
C
// #target: x64-darwin
|
|
|
|
module foo;
|
|
|
|
errtype Blurg
|
|
{
|
|
Y
|
|
}
|
|
|
|
fn void main()
|
|
{
|
|
static int! x = 120;
|
|
int! i = Blurg.Y!;
|
|
}
|
|
|
|
// #expect: foo.ll
|
|
|
|
define void @main() #0 {
|
|
entry:
|
|
%i = alloca i32, align 4
|
|
%i.f = alloca i64, align 8
|
|
store i64 ptrtoint ([1 x i8*]* @"foo.Blurg$elements" to i64), i64* %i.f, align 8
|
|
br label %after_assign
|
|
|
|
after_assign: ; preds = %entry
|
|
ret void
|
|
}
|