summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-9.c
blob: 594c20c9f38a560d2b2b8d972b81666ad2d1629e (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" { xfail *-*-* } } } */