OSDN Git Service

Do not FAIL in miscompiled runtime tests.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / ipa / ipa-sra-5.c
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fipa-sra -fdump-tree-eipa_sra-details" } */
3
4 static int *
5 __attribute__((noinline,used))
6   ox (int *i, int *j)
7 {
8   return i;
9 }
10
11 int a;
12
13 int *caller (void)
14 {
15   int b = 10;
16
17   return ox (&a, &b);
18 }
19 /* { dg-final { scan-tree-dump-times "base: j, remove_param" 0 "eipa_sra"  } } */
20 /* { dg-final { cleanup-tree-dump "eipa_sra" } } */