summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr17141-1.c
blob: f517c89b185665a03e562bcf9ae142b40d38d8bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-forwprop" } */

struct A { int i; };
int
foo(struct A *locp, int str)
{
  int T355, *T356;
  T356 = &locp->i;
  *T356 = str;
  return locp->i;
}

/* { dg-final { scan-tree-dump "locp.*->i =" "forwprop1" { xfail *-*-* } } } */
/* { dg-final { scan-tree-dump "locp.*->i =" "forwprop2" } } */
/* { dg-final { cleanup-tree-dump "forwprop?" } } */