// Copyright (c) Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include <benchmark/benchmark.h>
#include <locale>
using namespace std;

// GH-3048 <locale>: Double-checked locking for locale::classic
void BM_locale_classic(benchmark::State& state) {
    for (auto _ : state) {
        auto v = locale::classic();
        benchmark::DoNotOptimize(v);
    }
}
BENCHMARK(BM_locale_classic);

BENCHMARK_MAIN();
