--- nono/vm/test_busio.cpp 2026/04/29 17:04:36 1.1.1.2 +++ nono/vm/test_busio.cpp 2026/04/29 17:04:45 1.1.1.3 @@ -15,7 +15,7 @@ class IODevice { public: IODevice() {} - virtual ~IODevice() {} + virtual ~IODevice(); virtual uint64 Read8(uint32 addr) { return 0xef; } virtual uint64 Read16(uint32 addr) { @@ -39,6 +39,7 @@ class IODevice } virtual uint64 Peek8(uint32 addr) { return 0xff; } }; +IODevice::~IODevice() { } #define SELFTEST #include "busio.h" @@ -47,7 +48,7 @@ class TestByteDev : public IODevice { public: TestByteDev() {} - virtual ~TestByteDev() {} + virtual ~TestByteDev() override; static const uint32 NPORT = 4; uint32 reg[NPORT] {}; @@ -66,12 +67,13 @@ class TestByteDev : public IODevice return reg[addr]; } }; +TestByteDev::~TestByteDev() { } class TestWordDev : public IODevice { public: TestWordDev() {} - virtual ~TestWordDev() {} + virtual ~TestWordDev() override; static const uint32 NPORT = 4; uint32 reg[NPORT] {}; @@ -90,6 +92,7 @@ class TestWordDev : public IODevice return reg[addr]; } }; +TestWordDev::~TestWordDev() { } // テストデータ // expected[] の1エントリは1バイトを表す(WordDevの時も同様)。