PR testsuite/52641
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / 20040216-1.c
blobc770340a7672d1b5540df4885206c965364afcee
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-dse1-details" } */
4 foo(int *z, int *y, int xx)
6 *z = 1;
7 if (xx)
8 xx = 20;
9 else
10 xx = 30;
11 *z = 2;
12 *z = 3;
13 return xx;
16 /* We should convert two COND_EXPRs into straightline code. */
17 /* { dg-final { scan-tree-dump-times "Deleted dead store" 2 "dse1"} } */
18 /* { dg-final { cleanup-tree-dump "dse1" } } */