reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
76 if (auto Product = checkedMul(A, B))
unittests/Support/CheckedArithmeticTest.cpp29 EXPECT_EQ(checkedMul<int64_t>(Max, 2), None); 30 EXPECT_EQ(checkedMul<int64_t>(Max, Max), None); 31 EXPECT_EQ(checkedMul<int64_t>(Min, 2), None); 32 EXPECT_EQ(checkedMul<int64_t>(10, 2), Optional<int64_t>(20)); 47 EXPECT_EQ(checkedMul<int16_t>(Max, 2), None); 48 EXPECT_EQ(checkedMul<int16_t>(Max, Max), None); 49 EXPECT_EQ(checkedMul<int16_t>(Min, 2), None); 50 EXPECT_EQ(checkedMul<int16_t>(10, 2), Optional<int16_t>(20));