mirror of
https://github.com/nArnoSNES/tcc-65816.git
synced 2024-06-11 22:29:28 +00:00
7 lines
305 B
C
7 lines
305 B
C
/* When generating o32 MIPS PIC, main's $gp save slot was out of range
|
|
of a single load instruction. */
|
|
struct big { int i[sizeof (int) >= 4 && sizeof (void *) >= 4 ? 0x4000 : 4]; };
|
|
struct big gb;
|
|
int foo (struct big b, int x) { return b.i[x]; }
|
|
int main (void) { return foo (gb, 0) + foo (gb, 1); }
|