summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/ssa-copyprop-1.c
blob: 41ad6ce6e349c3e2dfde49d41a1cdb01dd1e0e3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-O2 -fno-tree-dominator-opts -fdump-tree-optimized" } */

typedef struct { int i; int j; } A;
int foo(A *a, int i)
{
  a->i = i;
  return a->i;
}

/* { dg-final { scan-tree-dump "return i" "optimized" } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */