aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/opt/nrv16.C
blob: 7b24d4a4ee0541296466d2f0194ec6585bdf9fae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// PR c++/44808
// { dg-do compile }

struct S
{
  void *a, *b;
  int c;
};

S
foo ()
{
  S x;
  S y = x;
  return x;
}