libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr77445.c
blob72bf0eca81fd8cd243b0b5cca8c7a9e3d8f018c3
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fno-early-inlining -fno-tree-vrp -fno-tree-dominator-opts -fdump-tree-thread2-details-blocks" } */
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 jump thread" 2 "thread2" } } */
29 /* { dg-final { scan-tree-dump-not "Invalid sum" "thread2" } } */