diff options
Diffstat (limited to 'libcxx/utils/google-benchmark/test/cxx03_test.cc')
-rw-r--r-- | libcxx/utils/google-benchmark/test/cxx03_test.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libcxx/utils/google-benchmark/test/cxx03_test.cc b/libcxx/utils/google-benchmark/test/cxx03_test.cc index 4f3d0fb6f49..a79d964e17b 100644 --- a/libcxx/utils/google-benchmark/test/cxx03_test.cc +++ b/libcxx/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() |