mirror of
https://github.com/nArnoSNES/tcc-65816.git
synced 2024-06-12 13:29:29 +00:00
28 lines
282 B
C
28 lines
282 B
C
extern void abort(void);
|
|
extern void exit(int);
|
|
|
|
struct baz {
|
|
int a, b, c;
|
|
};
|
|
|
|
void
|
|
foo (int a, int b, int c)
|
|
{
|
|
if (a != 4)
|
|
abort ();
|
|
}
|
|
|
|
void
|
|
bar (struct baz x, int b, int c)
|
|
{
|
|
foo (x.b, b, c);
|
|
}
|
|
|
|
int
|
|
main ()
|
|
{
|
|
struct baz x = { 3, 4, 5 };
|
|
bar (x, 1, 2);
|
|
exit (0);
|
|
}
|