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 
main(int,char **)19 int main(int, char**)
20 {
21     (void)std::tuple_size_v<std::tuple<> &>; // expected-note {{requested here}}
22     (void)std::tuple_size_v<int>; // expected-note {{requested here}}
23     (void)std::tuple_size_v<std::tuple<>*>; // expected-note {{requested here}}
24     // expected-error@tuple:* 3 {{implicit instantiation of undefined template}}
25 
26   return 0;
27 }
28