1
0
mirror of synced 2025-01-18 00:56:49 +01:00

tests: Fixed pointer test

This commit is contained in:
WerWolv 2022-01-10 22:15:05 +01:00
parent dc064008f3
commit b496fedea8

View File

@ -10,6 +10,8 @@ namespace hex::test {
// placementPointer
{
auto placementPointer = create<PatternDataPointer>("", "placementPointer", 0x0C, sizeof(u8), nullptr);
placementPointer->setPointedAtAddress(0x49);
auto pointedTo = create<PatternDataUnsigned>("u32", "", 0x49, sizeof(u32), nullptr);
placementPointer->setPointedAtPattern(pointedTo);
addPattern(placementPointer);