24 lines · cpp
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-exception6//7//===----------------------------------------------------------------------===//8 9// UNSUPPORTED: c++03, c++11, c++14, c++1710 11#include <utility>12 13template <auto>14struct Test {};15 16void test() {17 // LWG 3382. NTTP for pair and array18 // https://cplusplus.github.io/LWG/issue338219#if !defined(_LIBCPP_DEPRECATED_ABI_DISABLE_PAIR_TRIVIAL_COPY_CTOR)20 constexpr std::pair<int, long> a{};21 [[maybe_unused]] Test<a> test1{};22#endif23}24