libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-fre-93.c
blob7f66b7ee3f40609210cae6de29da3a279a4190ca
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-fre1" } */
4 void bar ();
5 void foo (int pred, int *other)
7 *other = 0;
8 if (*other)
9 goto cnt;
10 if (pred)
12 *other = 1;
13 cnt:
14 if (!pred)
15 bar ();
19 /* The first VN pass should figure that if (!pred) is false because
20 if (*other) is and thus the predicate test is redundant. */
21 /* { dg-final { scan-tree-dump-not "bar" "fre1" } } */