mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
21 lines
484 B
Plaintext
21 lines
484 B
Plaintext
module test;
|
|
|
|
union Foo
|
|
{
|
|
int a;
|
|
double b;
|
|
}
|
|
|
|
Foo f = { .a = 23 };
|
|
Foo g = { .b = 2.3 };
|
|
Foo h = { .a = 23, .b = 2.3 };
|
|
Foo i = { .b = 2.3, .a = 23 };
|
|
|
|
// #expect: test.ll
|
|
|
|
@test.f = protected global { i32, [4 x i8] } { i32 23, [4 x i8] undef }, align 8
|
|
@test.g = protected global %test.Foo { double 2.300000e+00 }, align 8
|
|
@test.h = protected global %test.Foo { double 2.300000e+00 }, align 8
|
|
@test.i = protected global { i32, [4 x i8] } { i32 23, [4 x i8] undef }, align 8
|
|
|