mirror of
https://github.com/google/benchmark.git
synced 2025-03-06 23:30:14 +08:00
Actually fix issue with CHECK
This commit is contained in:
parent
d31977bb69
commit
b40b66ab3b
@ -52,7 +52,7 @@ static void BM_Factorial(benchmark::State& state) {
|
|||||||
while (state.KeepRunning())
|
while (state.KeepRunning())
|
||||||
fac_42 = Factorial(8);
|
fac_42 = Factorial(8);
|
||||||
// Prevent compiler optimizations
|
// Prevent compiler optimizations
|
||||||
CHECK(fac_42 != std::numeric_limits<int>::max());
|
EXPECT_NE(fac_42, std::numeric_limits<int>::max());
|
||||||
}
|
}
|
||||||
BENCHMARK(BM_Factorial);
|
BENCHMARK(BM_Factorial);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user