Files
c3c/test/test_suite/errors/simple_static_failable.c3t
Christoffer Lerno cdff5c3e26 Dev (#500)
Single code path for kind/inner/len/sizeof on type and typeid. Fix of #493. Bump to 0.2.24. Remove ´func´ deprecated keyword. Unify builtin access. Enum and fault name reflection.
2022-07-26 00:56:59 +02:00

24 lines
325 B
C

// #target: macos-x64
module foo;
fault 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 (%.fault* @"foo_Blurg$Y" to i64), i64* %i.f, align 8
ret void
}