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