summaryrefslogtreecommitdiff
path: root/utils/google-benchmark/test/cxx03_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'utils/google-benchmark/test/cxx03_test.cc')
-rw-r--r--utils/google-benchmark/test/cxx03_test.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/google-benchmark/test/cxx03_test.cc b/utils/google-benchmark/test/cxx03_test.cc
index 4f3d0fb6f49c..a79d964e17bd 100644
--- a/utils/google-benchmark/test/cxx03_test.cc
+++ b/utils/google-benchmark/test/cxx03_test.cc
@@ -39,4 +39,10 @@ void BM_template1(benchmark::State& state) {
BENCHMARK_TEMPLATE(BM_template1, long);
BENCHMARK_TEMPLATE1(BM_template1, int);
+void BM_counters(benchmark::State& state) {
+ BM_empty(state);
+ state.counters["Foo"] = 2;
+}
+BENCHMARK(BM_counters);
+
BENCHMARK_MAIN()