repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[Reland][Runtimes] Merge 'compile_commands.json' files from runtimes build (#116303)
[llvm-project.git]
/
third-party
/
benchmark
/
test
/
link_main_test.cc
blob
131937eebca9d76f538645a5576189aa14572996
1
#include
"benchmark/benchmark.h"
2
3
void
BM_empty
(
benchmark
::
State
&
state
) {
4
for
(
auto
_
:
state
) {
5
auto
iterations
=
double
(
state
.
iterations
()) *
double
(
state
.
iterations
());
6
benchmark
::
DoNotOptimize
(
iterations
);
7
}
8
}
9
BENCHMARK
(
BM_empty
);