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

struct { int a, b; } soup1, soup2;
void
foo ()
{
  soup1 = soup2;
  soup1.a = 66;
  soup1.b = 77;
}

/* We should eliminate the first assignment.  */
/* { dg-final { scan-tree-dump-times "VDEF" 2 "dse1" } } */