PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr77445.c
blob98eb0f2cec61c24a8ecc09505f2cd98aa6cd13bd
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-thread3-details-blocks -fno-early-inlining -fno-tree-vrp -fno-tree-dominator-opts" } */
4 static int a;
5 static int b;
6 void test2 ();
7 void
8 test ()
10 b = 7;
13 void
14 main (int argc)
16 if (argc)
18 a = 7;
19 test ();
21 else
22 a = 0;
23 if (a)
24 test2 ();
25 if (b)
26 test2 ();
28 /* { dg-final { scan-tree-dump-times "Registering FSM jump thread" 2 "thread3" } } */
29 /* { dg-final { scan-tree-dump-not "Invalid sum" "thread3" } } */