1 //===----------------------------------------------------------------------===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 // UNSUPPORTED: c++03, c++11, c++14, c++17 9 10 // <span> 11 12 // constexpr span() noexcept; 13 // 14 // Remarks: This constructor shall not participate in overload resolution 15 // unless Extent == 0 || Extent == dynamic_extent is true. 16 17 18 #include <span> 19 #include <cassert> 20 #include <string> 21 22 #include "test_macros.h" 23 24 int main(int, char**) 25 { 26 std::span<int, 2> s; // expected-error {{no matching constructor for initialization of 'std::span<int, 2>'}} 27 28 return 0; 29 } 30