summaryrefslogtreecommitdiff
path: root/third-party/benchmark/test/templated_fixture_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'third-party/benchmark/test/templated_fixture_test.cc')
-rw-r--r--third-party/benchmark/test/templated_fixture_test.cc28
1 files changed, 0 insertions, 28 deletions
diff --git a/third-party/benchmark/test/templated_fixture_test.cc b/third-party/benchmark/test/templated_fixture_test.cc
deleted file mode 100644
index fe9865cc776f..000000000000
--- a/third-party/benchmark/test/templated_fixture_test.cc
+++ /dev/null
@@ -1,28 +0,0 @@
-
-#include "benchmark/benchmark.h"
-
-#include <cassert>
-#include <memory>
-
-template <typename T>
-class MyFixture : public ::benchmark::Fixture {
- public:
- MyFixture() : data(0) {}
-
- T data;
-};
-
-BENCHMARK_TEMPLATE_F(MyFixture, Foo, int)(benchmark::State& st) {
- for (auto _ : st) {
- data += 1;
- }
-}
-
-BENCHMARK_TEMPLATE_DEFINE_F(MyFixture, Bar, double)(benchmark::State& st) {
- for (auto _ : st) {
- data += 1.0;
- }
-}
-BENCHMARK_REGISTER_F(MyFixture, Bar);
-
-BENCHMARK_MAIN();