gcc/testsuite/g++.old-deja/g++.oliva/stkalign.C
raw| 1 | // { dg-do assemble } |
| 2 | |
| 3 | // Copyright (C) 2000 Free Software Foundation |
| 4 | |
| 5 | // by Alexandre Oliva <[email protected]> |
| 6 | // distilled from libg++'s Fix.cc |
| 7 | |
| 8 | |
| 9 | struct Integer { |
| 10 | ~Integer () {} |
| 11 | }; |
| 12 | |
| 13 | void foo (const Integer& y); |
| 14 | Integer bar (const Integer& x); |
| 15 | |
| 16 | void show (const Integer& x) { |
| 17 | foo (bar (x)); |
| 18 | } |