Home | History | Annotate | Download | only in func.bind.place
      1 //===----------------------------------------------------------------------===//
      2 //
      3 //                     The LLVM Compiler Infrastructure
      4 //
      5 // This file is dual licensed under the MIT and the University of Illinois Open
      6 // Source Licenses. See LICENSE.TXT for details.
      7 //
      8 //===----------------------------------------------------------------------===//
      9 
     10 // <functional>
     11 
     12 // placeholders
     13 
     14 #include <functional>
     15 
     16 template <class T>
     17 void
     18 test(const T& t)
     19 {
     20     T t2;
     21     T t3 = t;
     22 }
     23 
     24 int 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