Files
c3c/test/test_suite/errors/simple_static_failable.c3t
2021-11-16 17:46:44 +01:00

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
}