aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.eh/crash4.C
blob: e14f03b0788edd4b6069eab707f93ac616e0f400 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do assemble  }
// { dg-options "-O2" }
// Origin: Nathan Sidwell <nathan@codesourcery.com>

struct A
{
  A (int) { }
  ~A () { }
  int get () const { return 0; }
};

void f (const A &s) {
  f (s.get ());
}