Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions tests/std/include/test_header_units_and_modules.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,17 @@ void test_map() {
assert(m[30] == 33);
}

void test_mdspan() {
using namespace std;
puts("Testing <mdspan>.");
int arr[] = {10, 0, 0, 0, 20, 0, 0, 0, 30};
layout_right::mapping<extents<int, 3, 3>> mp;
assert(arr[mp(0, 0)] == 10);
assert(arr[mp(1, 1)] == 20);
assert(arr[mp(2, 2)] == 30);
// TRANSITION, test std::mdspan too (DevCom-10359857)
}

void test_memory() {
using namespace std;
puts("Testing <memory>.");
Expand Down Expand Up @@ -1097,6 +1108,7 @@ void all_cpp_header_tests() {
test_list();
test_locale();
test_map();
test_mdspan();
test_memory();
test_memory_resource();
test_mutex();
Expand Down
1 change: 1 addition & 0 deletions tests/std/tests/include_each_header_alone_matrix.lst
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ PM_CL="/DMEOW_HEADER=limits"
PM_CL="/DMEOW_HEADER=list"
PM_CL="/DMEOW_HEADER=locale"
PM_CL="/DMEOW_HEADER=map"
PM_CL="/DMEOW_HEADER=mdspan"
PM_CL="/DMEOW_HEADER=memory"
PM_CL="/DMEOW_HEADER=memory_resource"
PM_CL="/DMEOW_HEADER=mutex"
Expand Down