aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr99473-1.c
blob: 0fda5663a801b0749a5a23c053e8bb2a27bca577 (plain)
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" } } */