summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/pr20621-1.c
blob: b2a9785cd6f2162ad843a57b42ff5f3de0f0903a (plain)
1
2
3
4
5
6
7
8
9
/* { dg-require-stack-size "0x10000" } */

/* 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); }