diff options
| author | Eric Fiselier <eric@efcs.ca> | 2016-11-05 00:30:27 +0000 |
|---|---|---|
| committer | Eric Fiselier <eric@efcs.ca> | 2016-11-05 00:30:27 +0000 |
| commit | fbc9ff244c0da5a8e4e566b70a8fec3a50d88532 (patch) | |
| tree | 4143967ceb2630a5493a109e7a41e237bb34e422 /libcxx/utils/google-benchmark/test/donotoptimize_test.cc | |
| parent | 3a6f331d2d044e15f2e3b54bd776ba882ad06e52 (diff) | |
| download | bcm5719-llvm-fbc9ff244c0da5a8e4e566b70a8fec3a50d88532.tar.gz bcm5719-llvm-fbc9ff244c0da5a8e4e566b70a8fec3a50d88532.zip | |
Upgrade in-tree google benchmark to v1.1
llvm-svn: 286029
Diffstat (limited to 'libcxx/utils/google-benchmark/test/donotoptimize_test.cc')
| -rw-r--r-- | libcxx/utils/google-benchmark/test/donotoptimize_test.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libcxx/utils/google-benchmark/test/donotoptimize_test.cc b/libcxx/utils/google-benchmark/test/donotoptimize_test.cc index e4453fbbcf8..b21187aadc2 100644 --- a/libcxx/utils/google-benchmark/test/donotoptimize_test.cc +++ b/libcxx/utils/google-benchmark/test/donotoptimize_test.cc @@ -4,15 +4,12 @@ namespace { #if defined(__GNUC__) - std::uint64_t double_up(const std::uint64_t x) __attribute__ ((const)); +std::uint64_t double_up(const std::uint64_t x) __attribute__((const)); #endif - std::uint64_t double_up(const std::uint64_t x) { - return x * 2; - } +std::uint64_t double_up(const std::uint64_t x) { return x * 2; } } int main(int, char*[]) { - // this test verifies compilation of DoNotOptimize() for some types char buffer8[8]; |

