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