| 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 | // ~span() = default; |
| 13 | |
| 14 | #include <span> |
| 15 | #include <type_traits> |
| 16 | |
| 17 | template <class T> |
| 18 | constexpr void testDestructor() { |
| 19 | static_assert(std::is_nothrow_destructible_v<T>); |
| 20 | static_assert(std::is_trivially_destructible_v<T>); |
| 21 | } |
| 22 | |
| 23 | void test() { |
| 24 | testDestructor<std::span<int, 1>>(); |
| 25 | testDestructor<std::span<int>>(); |
| 26 | } |
| 27 | |