Go to the documentation of this file.
13 #include "../src/check.h"
14 #include "benchmark/benchmark.h"
16 #if defined(__GNUC__) && !defined(__EXCEPTIONS)
17 #define TEST_HAS_NO_EXCEPTIONS
21 #ifndef TEST_HAS_NO_EXCEPTIONS
22 throw std::logic_error(
"");
29 #if !defined(TEST_BENCHMARK_LIBRARY_HAS_NO_ASSERTIONS) && !defined(TEST_HAS_NO_EXCEPTIONS)
33 }
catch (std::logic_error
const&) {
38 }
catch (std::logic_error
const&) {
46 static bool called_once =
false;
62 static bool called_once =
false;
66 while(
state.KeepRunning()) {
76 int main(
int argc,
char* argv[]) {
BENCHMARK_ALWAYS_INLINE void DoNotOptimize(Tp const &value)
void BM_diagnostic_test(benchmark::State &state)
size_t RunSpecifiedBenchmarks()
void Initialize(int *argc, char **argv)
int main(int argc, char *argv[])
void try_invalid_pause_resume(benchmark::State &state)
AbortHandlerT *& GetAbortHandler()
void BM_diagnostic_test_keep_running(benchmark::State &state)
BENCHMARK(BM_diagnostic_test)
grpc
Author(s):
autogenerated on Fri May 16 2025 02:58:16