summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/tree-ssa/pr44914.C
blob: 57ca7e83f178352d87aa7216b6abf9eb54dbb826 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-do compile } */
/* { dg-options "-O1 -fipa-sra -fnon-call-exceptions" } */

struct A
{
  ~A () { }
};

struct B
{
  A a;
  int i;
  void f (int) { }
  B ()
  {
    f (i);
  }
};

B b;