Files
c3c/test/test_suite/errors/simple_static_failable.c3t
Christoffer Lerno 322d714305 Dev (#404)
Remove 'errtype' name and reduce Expr / TypeInfo memory footprint.
2022-03-08 23:38:27 +01:00

24 lines
337 B
C

// #target: x64-darwin
module foo;
optenum Blurg
{
Y
}
fn void main()
{
static int! x = 120;
int! i = Blurg.Y!;
}
// #expect: foo.ll
define void @foo.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
ret void
}