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

static int a, b;
int foo (int n, int which)
{
  void *p = __builtin_malloc (n);
  void *q = which ? &a : &b;
  return p == q;
}

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