llvm.org GIT mirror llvm / d9cc17e
[CodeView] Silence some -Wsign-compare warnings git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302971 91177308-0d34-0410-b5e6-96231b3b80d8 Justin Bogner 3 years ago
1 changed file(s) with 10 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
228228 }
229229
230230 // [0,8) should be present
231 EXPECT_EQ(8, Visitor.database().size());
231 EXPECT_EQ(8u, Visitor.database().size());
232232 for (uint32_t I = 0; I < 8; ++I)
233233 EXPECT_TRUE(ValidateDatabaseRecord(Visitor, I));
234234
235235 // 5, 5, 5
236 EXPECT_EQ(3, TestState->Callbacks.count());
236 EXPECT_EQ(3u, TestState->Callbacks.count());
237237 for (auto I : enumerate(IndicesToVisit))
238238 EXPECT_TRUE(ValidateVisitedRecord(I.index(), I.value()));
239239 }
256256 }
257257
258258 // [0, 7]
259 EXPECT_EQ(8, Visitor.database().size());
259 EXPECT_EQ(8u, Visitor.database().size());
260260 for (uint32_t I = 0; I < 8; ++I)
261261 EXPECT_TRUE(ValidateDatabaseRecord(Visitor, I));
262262
263263 // 2, 4, 7
264 EXPECT_EQ(3, TestState->Callbacks.count());
264 EXPECT_EQ(3u, TestState->Callbacks.count());
265265 for (auto I : enumerate(IndicesToVisit))
266266 EXPECT_TRUE(ValidateVisitedRecord(I.index(), I.value()));
267267 }
284284 }
285285
286286 // [0, 7]
287 EXPECT_EQ(8, Visitor.database().size());
287 EXPECT_EQ(8u, Visitor.database().size());
288288 for (uint32_t I = 0; I < 8; ++I)
289289 EXPECT_TRUE(ValidateDatabaseRecord(Visitor, I));
290290
291291 // 2, 4, 7
292 EXPECT_EQ(3, TestState->Callbacks.count());
292 EXPECT_EQ(3u, TestState->Callbacks.count());
293293 for (auto &I : enumerate(IndicesToVisit))
294294 EXPECT_TRUE(ValidateVisitedRecord(I.index(), I.value()));
295295 }
313313 }
314314
315315 // [0, 8) should be visited.
316 EXPECT_EQ(8, Visitor.database().size());
316 EXPECT_EQ(8u, Visitor.database().size());
317317 for (uint32_t I = 0; I < 8; ++I)
318318 EXPECT_TRUE(ValidateDatabaseRecord(Visitor, I));
319319
320320 // [0, 2]
321 EXPECT_EQ(3, TestState->Callbacks.count());
321 EXPECT_EQ(3u, TestState->Callbacks.count());
322322 for (auto I : enumerate(IndicesToVisit))
323323 EXPECT_TRUE(ValidateVisitedRecord(I.index(), I.value()));
324324 }
341341 }
342342
343343 // [4, 9)
344 EXPECT_EQ(5, Visitor.database().size());
344 EXPECT_EQ(5u, Visitor.database().size());
345345 for (uint32_t I = 4; I < 9; ++I)
346346 EXPECT_TRUE(ValidateDatabaseRecord(Visitor, I));
347347
348348 // 5, 7
349 EXPECT_EQ(2, TestState->Callbacks.count());
349 EXPECT_EQ(2u, TestState->Callbacks.count());
350350 for (auto &I : enumerate(IndicesToVisit))
351351 EXPECT_TRUE(ValidateVisitedRecord(I.index(), I.value()));
352352 }