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 // This is for bugs 18853 and 19118 11 12 #if __cplusplus >= 201103L 13 14 #include <tuple> 15 #include <functional> 16 17 struct X 18 { 19 X() {} 20 21 template <class T> 22 X(T); 23 24 void operator()() {} 25 }; 26 27 int 28 main() 29 { 30 X x; 31 std::function<void()> f(x); 32 } 33 #else 34 int main () {} 35 #endif 36