mirror of
https://github.com/nArnoSNES/tcc-65816.git
synced 2024-05-31 22:41:28 +00:00
23 lines
232 B
C
23 lines
232 B
C
typedef struct trio { int a, b, c; } trio;
|
|
|
|
int
|
|
bar (int i, trio t)
|
|
{
|
|
if (t.a == t.b || t.a == t.c)
|
|
abort ();
|
|
}
|
|
|
|
int
|
|
foo (trio t, int i)
|
|
{
|
|
return bar (i, t);
|
|
}
|
|
|
|
main ()
|
|
{
|
|
trio t = { 1, 2, 3 };
|
|
|
|
foo (t, 4);
|
|
exit (0);
|
|
}
|