1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-optimized" } */
4 extern void link_error (void);
7 test that a condition is propagated inside an if
19 void test55 (int x
, int y
)
30 /* There should be not link_error calls, if there is any the
31 optimization has failed */
32 /* ??? Ug. This one may or may not fail based on how fold decides
33 that the && should be emitted (based on BRANCH_COST). Fix this
34 by teaching dom to look through && and register all components
36 /* { dg-final { scan-tree-dump-times "link_error" 0 "optimized" { xfail { ! "powerpc*-*-* cris-*-* mmix-*-*" } } } } */
37 /* { dg-final { cleanup-tree-dump "optimized" } } */