summaryrefslogtreecommitdiff
path: root/scripts/build/probes/libcxx.cc
blob: 82371517e64c3cbb1d841b4b96df207b9e4698e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// SPDX-License-Identifier: GPL-2.0-or-later

#include <array>
#include <atomic>
#include <optional>
#include <span>
#include <string_view>
#include <type_traits>

constexpr std::array<int, 3> kValues{1, 2, 3};
static_assert(kValues[2] == 3);
static_assert(std::is_same_v<std::span<const int>::element_type, const int>);
static_assert(std::string_view{"libc++"}.size() == 6);

using Optional = std::optional<unsigned long>;
using Atomic = std::atomic<unsigned long>;