mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
15 lines
169 B
Plaintext
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 |