1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // UNSUPPORTED: c++98, c++03
14 // template <class... Types>
15 // class tuple_size<tuple<Types...>>
16 // : public integral_constant<size_t, sizeof...(Types)> { };
18 // Expect failures with a reference type, pointer type, and a non-tuple type.
24 (void)std::tuple_size<std::tuple<> &>::value; // expected-error {{implicit instantiation of undefined template}}
25 (void)std::tuple_size<int>::value; // expected-error {{implicit instantiation of undefined template}}
26 (void)std::tuple_size<std::tuple<>*>::value; // expected-error {{implicit instantiation of undefined template}}