PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / ipa-sra-1.c
blob777ed2a83d9f0a21407b718cd3bef364bd8b2b12
1 /* Trivially making sure IPA-SRA does not introduce segfaults where they should
2 not be. */
4 struct bovid
6 float red;
7 int green;
8 void *blue;
9 };
11 static int
12 __attribute__((noinline))
13 ox (int fail, struct bovid *cow)
15 int r;
16 if (fail)
17 r = cow->red;
18 else
19 r = 0;
20 return r;
23 int main (int argc, char *argv[])
25 int r;
27 r = ox ((argc > 2000), (void *) 0);
28 return r;