gcc/testsuite/g++.old-deja/g++.oliva/inline1.C
raw| 1 | // { dg-do assemble } |
| 2 | |
| 3 | // Copyright (C) 1999 Free Software Foundation |
| 4 | |
| 5 | // by Alexandre Oliva <[email protected]> |
| 6 | // Derived from GNU lilypond. |
| 7 | |
| 8 | |
| 9 | struct foo { |
| 10 | foo(); |
| 11 | foo(const foo&); |
| 12 | ~foo(); |
| 13 | }; |
| 14 | |
| 15 | struct bar { |
| 16 | foo foo_member; |
| 17 | bar(); |
| 18 | bar(const bar&); |
| 19 | // ~bar(); |
| 20 | }; |
| 21 | |
| 22 | struct baz { |
| 23 | void error (bar s); |
| 24 | }; |
| 25 | |
| 26 | void fail() __attribute__((noreturn)); |
| 27 | |
| 28 | void baz::error (bar s) { |
| 29 | fail(); |
| 30 | } |