1 /* { dg-do compile } */ 2 /* { dg-options "-O1 -fdump-tree-dse1-details" } */ 3 4 int foo(int * z,int * y,int xx)5foo(int *z, int *y, int xx) 6 { 7 *z = 1; 8 if (xx) 9 xx = 20; 10 else 11 xx = 30; 12 *z = 2; 13 *z = 3; 14 return xx; 15 } 16 17 /* We should convert two COND_EXPRs into straightline code. */ 18 /* { dg-final { scan-tree-dump-times "Deleted dead store" 2 "dse1"} } */ 19