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