summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-12.c
blob: dd8f69c8aea98f46603fbfa5a817dc633db123ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-dse1" } */

void foo (int *p, int b)
{
  if (b)
    *p = 1;
  *p = 0;
}

/* { dg-final { scan-tree-dump-times "\\\*p" 1 "dse1" } } */
/* { dg-final { cleanup-tree-dump "dse1" } } */