| //===----------------------------------------------------------------------===// |
| // |
| // The LLVM Compiler Infrastructure |
| // |
| // This file is dual licensed under the MIT and the University of Illinois Open |
| // Source Licenses. See LICENSE.TXT for details. |
| // |
| //===----------------------------------------------------------------------===// |
| |
| // UNSUPPORTED: c++98, c++03, c++11, c++14 |
| |
| // <tuple> |
| |
| // template <class T> constexpr size_t tuple_size_v = tuple_size<T>::value; |
| |
| // Expect failures with a reference type, pointer type, and a non-tuple type. |
| |
| #include <tuple> |
| |
| int main() |
| { |
| (void)std::tuple_size_v<std::tuple<> &>; // expected-note {{requested here}} |
| (void)std::tuple_size_v<int>; // expected-note {{requested here}} |
| (void)std::tuple_size_v<std::tuple<>*>; // expected-note {{requested here}} |
| // expected-error@tuple:* 3 {{implicit instantiation of undefined template}} |
| } |