mirror of
https://github.com/nArnoSNES/tcc-65816.git
synced 2024-06-11 22:29:28 +00:00
26 lines
265 B
C
26 lines
265 B
C
|
// big local array breaks stack access
|
||
|
|
||
|
f()
|
||
|
{
|
||
|
int x = 1;
|
||
|
#if defined(STACK_SIZE)
|
||
|
char big[STACK_SIZE/2];
|
||
|
#else
|
||
|
char big[0x1000];
|
||
|
#endif
|
||
|
|
||
|
({
|
||
|
__label__ mylabel;
|
||
|
mylabel:
|
||
|
x++;
|
||
|
if (x != 3)
|
||
|
goto mylabel;
|
||
|
});
|
||
|
exit(0);
|
||
|
}
|
||
|
|
||
|
main()
|
||
|
{
|
||
|
f();
|
||
|
}
|