Files
c3c/test/test_suite/compile_time/implicit_eval_access.c3t
2026-01-22 16:46:07 +01:00

24 lines
337 B
Plaintext

// #target: macos-x64
module test;
struct Bar
{
struct { union { struct { char z1; } } }
}
fn void main()
{
var $x = "alignof";
int a = Bar.z1.offsetof;
int b = Bar.z1.$x;
}
/* #expect: test.ll
entry:
%a = alloca i32, align 4
%b = alloca i32, align 4
store i32 0, ptr %a, align 4
store i32 1, ptr %b, align 4
ret void
}