Files
google--benchmark/test/link_main_test.cc
T
dominic 6daf2dff6f Refactor/modularize headers (#2140)
* Split the benchmark monolithic header

* src uses modular headers

* updated tests to use split headers

* clang-format

* clang-format mistake

* fix exports

* suppress warnings on msvc

* fixing double pops and some more missing exports
2026-03-04 09:53:50 +00:00

15 lines
389 B
C++

#include "benchmark/registration.h"
#include "benchmark/state.h"
#include "benchmark/utils.h"
namespace {
void BM_empty(benchmark::State& state) {
for (auto _ : state) {
auto iterations = static_cast<double>(state.iterations()) *
static_cast<double>(state.iterations());
benchmark::DoNotOptimize(iterations);
}
}
BENCHMARK(BM_empty);
} // end namespace