libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr102546.c
blob4bd98747732ffd7222bc2aa18d3dc7c18e983633
1 // { dg-do compile }
2 // { dg-options "-O3 -fdump-tree-optimized" }
4 static int a;
5 static char b, c, d;
6 void bar(void);
7 void foo(void);
9 int main() {
10 int f = 0;
11 for (; f <= 5; f++) {
12 bar();
13 b = b && f;
14 d = f << f;
15 if (!(a >= d || f))
16 foo();
17 c = 1;
18 for (; c; c = 0)
23 // { dg-final { scan-tree-dump-not "foo" "optimized" } }