TupleFunction.pass.cpp 654 B

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