diff options
Diffstat (limited to 'libcxx/test/std/containers/views/span.cons/array.fail.cpp')
-rw-r--r-- | libcxx/test/std/containers/views/span.cons/array.fail.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libcxx/test/std/containers/views/span.cons/array.fail.cpp b/libcxx/test/std/containers/views/span.cons/array.fail.cpp index 7ef49fc4708..e1e5deea534 100644 --- a/libcxx/test/std/containers/views/span.cons/array.fail.cpp +++ b/libcxx/test/std/containers/views/span.cons/array.fail.cpp @@ -7,7 +7,7 @@ // Source Licenses. See LICENSE.TXT for details. // //===---------------------------------------------------------------------===// -// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 // <span> @@ -16,7 +16,7 @@ // template<size_t N> // constexpr span(array<value_type, N>& arr) noexcept; // template<size_t N> -// constexpr span(const array<value_type, N>& arr) noexcept; +// constexpr span(const array<value_type, N>& arr) noexcept; // // Remarks: These constructors shall not participate in overload resolution unless: // — extent == dynamic_extent || N == extent is true, and @@ -41,13 +41,13 @@ int main () { std::span<int, 2> s1(arr); // expected-error {{no matching constructor for initialization of 'std::span<int, 2>'}} } - + // Type wrong { std::span<float> s1(arr); // expected-error {{no matching constructor for initialization of 'std::span<float>'}} std::span<float, 3> s2(arr); // expected-error {{no matching constructor for initialization of 'std::span<float, 3>'}} } - + // CV wrong (dynamically sized) { std::span< int> s1{ carr}; // expected-error {{no matching constructor for initialization of 'std::span<int>'}} |