| 41 | }; |
| 42 | |
| 43 | class Type2 |
| 44 | { |
| 45 | public: |
| 46 | Type2(TestBaseType t_bt) |
| 47 | : m_bt(std::move(t_bt)), |
| 48 | m_str("Hello World") |
| 49 | { |
| 50 | } |
| 51 | |
| 52 | int get_val() const |
| 53 | { |
| 54 | return m_bt.val; |
| 55 | } |
| 56 | |
| 57 | |
| 58 | const char *get_str() const |
| 59 | { |
| 60 | return m_str.c_str(); |
| 61 | } |
| 62 | |
| 63 | private: |
| 64 | TestBaseType m_bt; |
| 65 | std::string m_str; |
| 66 | }; |
| 67 | |
| 68 | enum TestEnum |
| 69 | { |
no outgoing calls