aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/ssa-fre-1.c
blob: 15971223e01be44da2b1493b91432f5675c1fda0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */
/* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */
/* { dg-additional-options "-fstrict-aliasing -fdump-tree-fre1" } */

float f;
int foo(int *p, int *q)
{
  *p = 0;
  if (*p)
    *q = 1;
  else
    f = 8.0f;
  return *p;
}

/* { dg-final { scan-tree-dump "return 0;" "fre1" } } */