1 //===----------------------------------------------------------------------===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 // UNSUPPORTED: c++98, c++03 10 11 // This is for bugs 18853 and 19118 12 13 #include <tuple> 14 #include <functional> 15 16 struct X 17 { 18 X() {} 19 20 template <class T> 21 X(T); 22 23 void operator()() {} 24 }; 25 26 int main(int, char**) 27 { 28 X x; 29 std::function<void()> f(x); 30 31 return 0; 32 } 33