1 2 3 4 5 6 7 8 9 10 11 12 13 14
/* { dg-do compile } */ /* { dg-options "-O2 -ftree-cselim -fallow-store-data-races -fdump-tree-cselim-details" } */ void f (int*); void g3 (int i) { int x = 0; if (i) x = i; f (&x); } /* { dg-final { scan-tree-dump "Conditional store replacement happened" "cselim" } } */