mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Upgrade of mingw in CI. Fix problems using reflection on interface types #1203. Improved debug information on defer. $foreach doesn't create an implicit syntactic scope. Error if `@if` depends on `@if`. Updated Linux stacktrace. Fix of default argument stacktrace. Allow linking libraries directly by file path. Improve inlining warning messages. Added `index_of_char_from`. Compiler crash using enum nameof from different module #1205. Removed unused fields in find_msvc. Use vswhere to find msvc. Update tests for LLVM 19
21 lines
567 B
Plaintext
21 lines
567 B
Plaintext
// #target: macos-x64
|
|
module test;
|
|
|
|
union Foo
|
|
{
|
|
int a;
|
|
double b;
|
|
}
|
|
|
|
Foo f @private = { .a = 23 };
|
|
Foo g @private = { .b = 2.3 };
|
|
Foo h @private = { .a = 23, .b = 2.3 };
|
|
Foo i = { .b = 2.3, .a = 23 };
|
|
|
|
/* #expect: test.ll
|
|
|
|
@test.f = internal unnamed_addr global { i32, [4 x i8] } { i32 23, [4 x i8] undef }, align 8
|
|
@test.g = internal unnamed_addr global %Foo { double 2.300000e+00 }, align 8
|
|
@test.h = internal unnamed_addr global %Foo { double 2.300000e+00 }, align 8
|
|
@test.i = local_unnamed_addr global { i32, [4 x i8] } { i32 23, [4 x i8] undef }, align 8
|