]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/tree-ssa/pr97964.c
Fix profile update in tree_transform_and_unroll_loop
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr97964.c
1 /* PR tree-optimization/97964 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-optimized" } */
4 /* { dg-final { scan-tree-dump-not "link_failure \\\(\\\);" "optimized" } } */
5
6 void link_failure (void);
7
8 void
9 foo (int a)
10 {
11 long b = -2;
12 int c = a > 0;
13 int d = b * c;
14 int e = 1 - d;
15 int t = (-1 / e) == 1;
16 if (t != 0)
17 link_failure ();
18 }