aboutsummaryrefslogtreecommitdiff
path: root/test/link_main_test.cc
blob: e806500a9a6f6adf924e0a7c51ed4922c8ce00ce (plain)
1
2
3
4
5
6
7
8
9
#include "benchmark/benchmark.h"

void BM_empty(benchmark::State& state) {
  for (auto _ : state) {
    auto iterations = state.iterations();
    benchmark::DoNotOptimize(iterations);
  }
}
BENCHMARK(BM_empty);