tcc-65816/test/tests/20000707-1.c
2017-06-09 13:52:12 +02:00

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);
}