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

15 lines
169 B
Plaintext

module test;
struct Event
{
int op;
}
func Event test(int x)
{
Event foo = { 1 };
Event bar = { 2 };
return x ? foo : bar;
}
// TODO possibly look at the IR