| //===----------------------------------------------------------------------===// |
| // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| // See https://llvm.org/LICENSE.txt for license information. |
| // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| //===----------------------------------------------------------------------===// |
| template <int Expected, class T> |
| static_assert(std::is_placeholder<T>::value == Expected, ""); |
| static_assert(std::is_placeholder_v<T> == Expected, ""); |
| test<1>(std::placeholders::_1); |
| test<2>(std::placeholders::_2); |
| test<3>(std::placeholders::_3); |
| test<4>(std::placeholders::_4); |
| test<5>(std::placeholders::_5); |
| test<6>(std::placeholders::_6); |
| test<7>(std::placeholders::_7); |
| test<8>(std::placeholders::_8); |
| test<9>(std::placeholders::_9); |
| test<10>(std::placeholders::_10); |