mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
26 lines
368 B
Plaintext
26 lines
368 B
Plaintext
// #target: macos-x64
|
|
module test;
|
|
struct Str
|
|
{
|
|
union
|
|
{
|
|
float128 a;
|
|
long c;
|
|
}
|
|
}
|
|
|
|
extern fn void d(Str s);
|
|
Str ss;
|
|
fn void f9122143()
|
|
{
|
|
d(ss);
|
|
}
|
|
|
|
/* #expect: test.ll
|
|
|
|
declare void @d(i64, double) #0
|
|
|
|
%lo = load i64, ptr @test.ss, align 16
|
|
%hi = load double, ptr getelementptr inbounds (i8, ptr @test.ss, i64 8), align 8
|
|
call void @d(i64 %lo, double %hi)
|