David Blaikie | ee12322 | 2017-02-08 20:51:11 +0000 | [diff] [blame] | 1 | inline void f1(const char* fmt, ...) { |
| 2 | __builtin_va_list args; |
| 3 | __builtin_va_start(args, fmt); |
David Blaikie | 9ffe5a3 | 2017-01-30 05:00:26 +0000 | [diff] [blame] | 4 | } |
David Blaikie | e6b7c28 | 2017-04-11 20:46:34 +0000 | [diff] [blame] | 5 | |
| 6 | struct non_trivial_dtor { |
| 7 | ~non_trivial_dtor(); |
| 8 | }; |
| 9 | |
| 10 | struct implicit_dtor { |
| 11 | non_trivial_dtor d; |
| 12 | }; |
| 13 | |
| 14 | struct uninst_implicit_dtor { |
| 15 | non_trivial_dtor d; |
| 16 | }; |
| 17 | |
| 18 | inline void use_implicit_dtor() { |
| 19 | implicit_dtor d; |
| 20 | } |
| 21 | |
| 22 | template <typename T> |
| 23 | void inst() { |
| 24 | } |
| 25 | |
| 26 | inline void inst_decl() { |
| 27 | // cause inst<int>'s declaration to be instantiated, without a definition. |
| 28 | (void)sizeof(&inst<int>); |
| 29 | inst<float>(); |
| 30 | } |
David Blaikie | e60aa51 | 2017-04-12 21:14:04 +0000 | [diff] [blame] | 31 | |
David Blaikie | 1524e67 | 2017-11-02 22:28:50 +0000 | [diff] [blame] | 32 | __attribute__((always_inline)) inline void always_inl() { |
| 33 | } |
| 34 | |
David Blaikie | e60aa51 | 2017-04-12 21:14:04 +0000 | [diff] [blame] | 35 | asm("narf"); |