mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
24 lines
319 B
Plaintext
24 lines
319 B
Plaintext
// #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 (ptr @"foo.Blurg$Y" to i64), ptr %i.f, align 8
|
|
ret void
|
|
} |