aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/pr44194-2.c
blob: b127e1b337494e5697f91d4461c229861620130f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-rtl-dse1" } */

struct ints { int a, b, c; } foo();
void bar(int a, int b);

void func() {
  volatile struct ints s = foo();
  bar(s.a, s.b);
}
/* { dg-final { scan-rtl-dump "global deletions = 0"  "dse1" } } */
/* { dg-final { cleanup-rtl-dump "dse1" } } */