Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.other/cleanup4.C

raw
1 // { dg-do assemble }
2 // { dg-options "-O2 -fno-exceptions" }
3 // Origin: Jakub Jelinek <[email protected]>
4
5 class foo
6 {
7 public:
8 foo ();
9 ~foo ();
10 };
11
12 class bar
13 {
14 public:
15 bar ();
16 bar (const foo&);
17 };
18
19 int i;
20 foo f ();
21
22 inline bar x ()
23 {
24 switch (i)
25 {
26 case 0: return bar (f ());
27 default: return bar ();
28 }
29 }
30
31 bar y ()
32 {
33 return x ();
34 }