summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/torture/pr47290.C
blob: b739de5b749ae6a30802efc6a612aadf64dc2cf1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// PR tree-optimization/47290
// { dg-do compile }

struct V
{
  V (int = 0);
  ~V ()
  {
    for (;;)
      ;
  }
  int size ();
};

struct S
{
  V a, b;
  S () : b (a.size ()) {}
} s;