2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-ccp-20.c
blob9ee03c646438282646fdd846784cf14f44ea9ec4
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-ccp1" } */
4 /* Make sure CCP propagates through indirect calls. */
6 int foo (void)
8 int i = -5;
9 int (*fn)(int) = __builtin_abs;
10 int j = fn(i);
11 return j + 5;
14 /* { dg-final { scan-tree-dump "return 10;" "ccp1" } } */