mirror of
https://github.com/nArnoSNES/tcc-65816.git
synced 2024-06-12 13:29:29 +00:00
27 lines
249 B
C
27 lines
249 B
C
main ()
|
|
{
|
|
f ();
|
|
exit (0);
|
|
}
|
|
|
|
static
|
|
g (out, size, lo, hi)
|
|
int *out, size, lo, hi;
|
|
{
|
|
int j;
|
|
|
|
for (j = 0; j < size; j++)
|
|
out[j] = j * (hi - lo);
|
|
}
|
|
|
|
|
|
f ()
|
|
{
|
|
int a[2];
|
|
|
|
g (a, 2, 0, 1);
|
|
|
|
if (a[0] != 0 || a[1] != 1)
|
|
abort ();
|
|
}
|