| 205 | virtual auto GetValue() -> int { return 0; } |
| 206 | }; |
| 207 | struct Derived : Base { |
| 208 | int val; |
| 209 | explicit Derived(int v) : val(v) {} |
| 210 | auto GetValue() -> int override { return val; } |
| 211 | }; |
| 212 | |
| 213 | kstd::unique_ptr<Base> p(new Derived(42)); |
| 214 | EXPECT_EQ(p->GetValue(), 42); |
nothing calls this directly
no outgoing calls
no test coverage detected