Index: TypeIndexDiscoveryTest.cpp =================================================================== --- TypeIndexDiscoveryTest.cpp +++ TypeIndexDiscoveryTest.cpp @@ -537,9 +537,9 @@ TEST_F(TypeIndexIteratorTest, ProcSym) { ProcSym GS(SymbolRecordKind::GlobalProcSym); - GS.FunctionType = TypeIndex(0x40); + GS.FunctionType = TypeIndex::Float32(); ProcSym LS(SymbolRecordKind::ProcSym); - LS.FunctionType = TypeIndex(0x41); + LS.FunctionType = TypeIndex::Float64(); writeSymbolRecords(GS, LS); checkTypeReferences(0, GS.FunctionType); checkTypeReferences(1, LS.FunctionType); @@ -547,11 +547,20 @@ TEST_F(TypeIndexIteratorTest, DataSym) { DataSym DS(SymbolRecordKind::GlobalData); - DS.Type = TypeIndex(0x40); + DS.Type = TypeIndex::Float32(); writeSymbolRecords(DS); checkTypeReferences(0, DS.Type); } +TEST_F(TypeIndexIteratorTest, RegisterSym) { + RegisterSym REG(SymbolRecordKind::RegisterSym); + REG.Index = TypeIndex::UInt32(); + REG.Register = RegisterId::EAX; + REG.Name = "Target"; + writeSymbolRecords(REG); + checkTypeReferences(0, REG.Index); +} + TEST_F(TypeIndexIteratorTest, CallerSym) { CallerSym Callees(SymbolRecordKind::CalleeSym); Callees.Indices.push_back(TypeIndex(1));