diff options
| author | Richard Qin <richard.qin.x@gmail.com> | 2026-07-11 22:48:30 +0800 |
|---|---|---|
| committer | Richard Qin <richard.qin.x@gmail.com> | 2026-07-11 22:48:30 +0800 |
| commit | 3ad39e9878310e5317ee73c9b353c1e2c1c5c4ee (patch) | |
| tree | 4bd5a49ef60ad1e371c0984cd46838368c5ef83a /scripts/build/probes/libcxx.cc | |
| parent | 48ef95c24e9ac3d11200b61af617a01b10b507d1 (diff) | |
| download | lume-3ad39e9878310e5317ee73c9b353c1e2c1c5c4ee.tar.gz lume-3ad39e9878310e5317ee73c9b353c1e2c1c5c4ee.tar.xz | |
lib: establish Zircon libc++ and KTL foundation
Diffstat (limited to 'scripts/build/probes/libcxx.cc')
| -rw-r--r-- | scripts/build/probes/libcxx.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/build/probes/libcxx.cc b/scripts/build/probes/libcxx.cc new file mode 100644 index 0000000..8237151 --- /dev/null +++ b/scripts/build/probes/libcxx.cc @@ -0,0 +1,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>; |
