summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/eh2.C
blob: 158ae20871ecc1365c64e1b250a9a482e96b03ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// { dg-do assemble  }
// { dg-options "-O2" }
// Origin: Jakub Jelinek <jakub@redhat.com>

class a {
public:
  double b;
  int c;
  ~a() { }
};

int bar(a x);
a foo(double x);

int baz(double x, int y)
{
   return bar(foo(x));
}