aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/alias-1.c
blob: 4e6cc5ad448cfaae97ac97c8ac3e5221f3367ff5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-options "-O2 -fargument-noalias-global -fdump-tree-optimizated" } */
int f;
void link_error ();

void g(int *i)
{
  *i = 0;
  f = 1;
  if (*i != 0)
    link_error ();
}


/* We should have removed the link_error on the tree level as we told GCC
   that *i cannot point to f via the option -fargument-noalias-global. */
/* { dg-final { scan-tree-dump-times "link_error" 0 "optimized"} } */