2017-11-15 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / ipa / ipa-pta-6.c
blob8fd5a4387b0dcae7fc634ec59d8abe61ab7b8edc
1 /* { dg-do run } */
2 /* { dg-options "-O -fipa-pta -fdump-ipa-pta2-details" } */
4 static void __attribute__((noinline,noclone))
5 foo (int *p)
7 *p = 1;
10 extern void abort (void);
12 int main()
14 int i = 0;
15 foo (&i);
16 if (i != 1)
17 abort ();
18 return 0;
21 /* Verify we correctly compute the units ESCAPED set as empty but
22 still properly account for the store via *p in foo. */
24 /* { dg-final { scan-ipa-dump "ESCAPED = { }" "pta2" } } */