placeholders.pass.cpp revision c52f43e72dfcea03037729649da84c23b3beb04a
1//===----------------------------------------------------------------------===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// 9 10// <functional> 11 12// placeholders 13 14#include <functional> 15 16template <class T> 17void 18test(const T& t) 19{ 20 T t2; 21 T t3 = t; 22} 23 24int main() 25{ 26 test(std::placeholders::_1); 27 test(std::placeholders::_2); 28 test(std::placeholders::_3); 29 test(std::placeholders::_4); 30 test(std::placeholders::_5); 31 test(std::placeholders::_6); 32 test(std::placeholders::_7); 33 test(std::placeholders::_8); 34 test(std::placeholders::_9); 35 test(std::placeholders::_10); 36} 37