]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/tree-ssa/pr61144.c
Fix profile update in tree_transform_and_unroll_loop
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr61144.c
1 /* { dg-do compile } */
2 /* { dg-require-weak "" } */
3 /* { dg-require-alias "" } */
4 /* { dg-options "-O2 -fdump-tree-optimized" } */
5 static int dummy = 0;
6 extern int foo __attribute__((__weak__, __alias__("dummy")));
7 int bar() { if (foo) return 1; return 0; }
8 /* { dg-final { scan-tree-dump-not "return 0" "optimized"} } */