| 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 | |
| 9 | // UNSUPPORTED: c++03, c++11, c++14 |
| 10 | |
| 11 | // <tuple> |
| 12 | |
| 13 | // template <class T> constexpr size_t tuple_size_v = tuple_size<T>::value; |
| 14 | |
| 15 | // Expect failures with a reference type, pointer type, and a non-tuple type. |
| 16 | |
| 17 | #include <tuple> |
| 18 | |
| 19 | void f() { |
| 20 | (void)std::tuple_size_v<std::tuple<>&>; // expected-note {{requested here}} |
| 21 | (void)std::tuple_size_v<int>; // expected-note {{requested here}} |
| 22 | (void)std::tuple_size_v<std::tuple<>*>; // expected-note {{requested here}} |
| 23 | // expected-error@*:* 3 {{implicit instantiation of undefined template}} |
| 24 | } |
| 25 | |