summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr44194-2.c
blob: 3548542c40f5cc2942548cc9a42bba0b4e8a14e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-rtl-dse1" } */
#include <stdint.h>

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" } } */