mirror of
https://github.com/nArnoSNES/tcc-65816.git
synced 2024-06-13 04:29:31 +00:00
22 lines
221 B
C
22 lines
221 B
C
static inline int bar(void) { return 1; }
|
|
static int mem[3];
|
|
|
|
static int foo(int x)
|
|
{
|
|
if (x != 0)
|
|
return x;
|
|
|
|
mem[x++] = foo(bar());
|
|
|
|
if (x != 1)
|
|
abort();
|
|
|
|
return 0;
|
|
}
|
|
|
|
int main()
|
|
{
|
|
foo(0);
|
|
return 0;
|
|
}
|