aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/alias-38.c
blob: a5c414934735a210748d0cd62f80c12d9242eb20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */

int x;
int y;

int main ()
{
  int *volatile p = &x;
  return (p != &y);
}

/* { dg-final { scan-tree-dump " != &y" "optimized" } } */
/* { dg-final { scan-tree-dump-not "return 1;" "optimized" } } */