mirror of
https://github.com/nArnoSNES/tcc-65816.git
synced 2024-06-12 13:29:29 +00:00
22 lines
230 B
C
22 lines
230 B
C
void abort (void);
|
|
|
|
char q;
|
|
void *a[2];
|
|
|
|
void foo (char *p)
|
|
{
|
|
int i;
|
|
for (i = 0; i < 2; i++)
|
|
a[i] += p - &q;
|
|
}
|
|
|
|
int main (void)
|
|
{
|
|
int i;
|
|
foo (&q);
|
|
for (i = 0; i < 2; i ++)
|
|
if (a[i])
|
|
abort ();
|
|
return 0;
|
|
}
|