Files
c3c/test/test_suite/struct/struct_codegen.c3t

25 lines
317 B
Plaintext

module test;
struct Point
{
int x;
int y;
}
func void test1()
{
Point p = { 5, 6 };
}
// #expect: struct_codegen.ll
%test.Point = type { i32, i32 }
@Point = linkonce_odr constant i8 1
entry:
%p = alloca %test.Point
%0 = load %test.Point, %test.Point* @0
store %test.Point %0, %test.Point* %p