OSDN Git Service

For Greta Yorsh.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / tree-ssa / 20050412-1.c
1 /* PR tree-optimization/14627 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-optimized" } */
4
5
6 int b;
7 void foo (int a) {
8         if (a)
9                 a = 3;
10         b = a;
11 }
12
13 /* Make sure we do not have an assignment a = 0 in the resulting
14    optimized dump.  */
15 /* { dg-final { scan-tree-dump-times "a.* = 0;" 0 "optimized"} } */
16 /* { dg-final { cleanup-tree-dump "optimized" } } */