MCPcopy Create free account
hub / github.com/Simple-XX/SimpleKernel / Base

Class Base

tests/unit_test/sk_unique_ptr_test.cpp:203–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201// 19. Polymorphic — base unique_ptr managing derived
202TEST_F(UniquePtrTest, Polymorphic) {
203 struct Base {
204 virtual ~Base() = default;
205 virtual auto GetValue() -> int { return 0; }
206 };
207 struct Derived : Base {
208 int val;
209 explicit Derived(int v) : val(v) {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected