Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / alias-17.c
blob48e72ffee2f0a948f35165d7ccd4818a694c9c9d
1 /* { dg-do compile } */
2 /* { dg-options "-O -fno-early-inlining -fdump-tree-ccp2" } */
4 int *p;
5 int inline bar(void) { return 0; }
6 int foo(int x)
8 int i;
9 int *q;
10 if (bar())
11 q = &i;
12 else
13 q = p;
14 return *q + *p;
17 /* { dg-final { scan-tree-dump-not "NOTE: no flow-sensitive alias info for" "ccp2" } } */
18 /* { dg-final { cleanup-tree-dump "ccp2" } } */