Merged r158229 through r158464 into branch.
[official-gcc.git] / gcc / testsuite / gcc.dg / ipa / ipa-pta-7.c
blob3cdfd63fa3e305e25185171f8ec153f97a5e7c99
1 /* { dg-do run } */
2 /* { dg-options "-O2 -fno-early-inlining -fipa-pta" } */
4 static void __attribute__((noinline,noclone))
5 clobber_me (int *p, int how)
7 *p = how;
10 /* When foo is inlined into main we have to make sure to adjust
11 main()s IPA CLOBBERED set according to the decl remappings
12 inlining does. */
14 static int
15 foo (void)
17 int a = 0;
18 clobber_me (&a, 1);
19 return a;
22 extern void abort (void);
24 int main()
26 if (foo () != 1)
27 abort ();
29 return 0;