mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
25 lines
317 B
Plaintext
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
|
|
|