p5-0x.cpp revision 7d5c0c1273bdc1cb3dff1cb5a62d07b1439e82c7
1// RUN: %clang_cc1 -std=c++0x -fsyntax-only -verify %s 2 3// FIXME: More bullets to go! 4 5template<typename T, typename U> 6struct has_nondeduced_pack_test { 7 static const bool value = false; 8}; 9 10template<typename R, typename FirstType, typename ...Types> 11struct has_nondeduced_pack_test<R(FirstType, Types..., int), 12 R(FirstType, Types...)> { 13 static const bool value = true; 14}; 15 16// - A function parameter pack that does not occur at the end of the 17// parameter-declaration-clause. 18int check_nondeduced_pack_test0[ 19 has_nondeduced_pack_test<int(float, double, int), 20 int(float, double)>::value? 1 : -1]; 21 22 23