tests: Fixed pointer test

This commit is contained in:
WerWolv 2022-01-10 22:15:05 +01:00
parent dc064008f3
commit b496fedea8
1 changed files with 2 additions and 0 deletions

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);