Skip to content

Commit e7b56b9

Browse files
boomanaiden154rorth
authored andcommitted
[libcxx] Add span includes to some mdspan tests (llvm#142693)
This patch adds missing <span> includes for std::mdspan tests that use std::span. There are other cases where we need dynamic_extent that are handled in llvm#142925. This was found by running the test suite in the bootstrapping build with Clang modules enabled.
1 parent c6ad0c8 commit e7b56b9

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

libcxx/test/libcxx/containers/views/mdspan/extents/assert.ctor_from_span.pass.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@
2828
// for every rank index r.
2929
//
3030

31-
#include <mdspan>
3231
#include <cassert>
32+
#include <mdspan>
33+
#include <span>
3334

3435
#include "check_assertion.h"
3536

libcxx/test/libcxx/containers/views/mdspan/layout_stride/assert.ctor.extents_array.pass.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@
3030
//
3131
// Effects: Direct-non-list-initializes extents_ with e, and for all d in the range [0, rank_), direct-non-list-initializes strides_[d] with as_const(s[d]).
3232

33-
#include <mdspan>
3433
#include <cassert>
34+
#include <mdspan>
35+
#include <span>
3536

3637
#include "check_assertion.h"
3738

libcxx/test/libcxx/containers/views/mdspan/layout_stride/assert.ctor.extents_span.pass.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@
3030
//
3131
// Effects: Direct-non-list-initializes extents_ with e, and for all d in the range [0, rank_), direct-non-list-initializes strides_[d] with as_const(s[d]).
3232

33-
#include <mdspan>
3433
#include <cassert>
34+
#include <mdspan>
35+
#include <span>
3536

3637
#include "check_assertion.h"
3738

0 commit comments

Comments
 (0)