Skip to content

Commit 68ea167

Browse files
committed
Missing header includes in tests
1 parent 1c57f20 commit 68ea167

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

libcxx/test/std/containers/views/mdspan/aligned_accessor/access.pass.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
#include <mdspan>
1818
#include <cassert>
19+
#include <cstdint>
20+
#include <concepts>
1921
#include <type_traits>
2022

2123
#include "test_macros.h"

libcxx/test/std/containers/views/mdspan/aligned_accessor/offset.pass.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
#include <mdspan>
1818
#include <cassert>
19+
#include <cstdint>
20+
#include <concepts>
1921
#include <type_traits>
2022

2123
#include "test_macros.h"
@@ -29,9 +31,9 @@ constexpr void test_offset() {
2931
std::aligned_accessor<T, N> acc;
3032
for (size_t i = 0; i < 10 + N; i++) {
3133
if (reinterpret_cast<std::uintptr_t>(ptr + i) % N == 0) {
32-
static_assert(std::is_same_v<decltype(acc.offset(ptr, i)), typename std::default_accessor<T>::data_handle_type>);
34+
std::same_as<typename std::default_accessor<T>::data_handle_type> decltype(auto) x = acc.offset(ptr, i);
3335
ASSERT_NOEXCEPT(acc.offset(ptr, i));
34-
assert(acc.offset(ptr, i) == ptr + i);
36+
assert(x == ptr + i);
3537
}
3638
}
3739
}

libcxx/test/std/utilities/memory/ptr.align/is_sufficiently_aligned.pass.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include <cassert>
1919
#include <cstddef>
2020
#include <memory>
21+
#include <type_traits>
2122

2223
#include "test_macros.h"
2324

0 commit comments

Comments
 (0)