PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / pr20621-1.c
blobb2a9785cd6f2162ad843a57b42ff5f3de0f0903a
1 /* { dg-require-stack-size "0x10000" } */
3 /* When generating o32 MIPS PIC, main's $gp save slot was out of range
4 of a single load instruction. */
5 struct big { int i[sizeof (int) >= 4 && sizeof (void *) >= 4 ? 0x4000 : 4]; };
6 struct big gb;
7 int foo (struct big b, int x) { return b.i[x]; }
8 int main (void) { return foo (gb, 0) + foo (gb, 1); }