F_incomplete.pass.cpp 662 B

1234567891011121314151617181920212223242526272829
  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. // <functional>
  10. // class function<R(ArgTypes...)>
  11. // template<class F> function(F);
  12. // Allow incomplete argument types in the __is_callable check
  13. #include <functional>
  14. struct X{
  15. typedef std::function<void(X&)> callback_type;
  16. virtual ~X() {}
  17. private:
  18. callback_type _cb;
  19. };
  20. int main()
  21. {
  22. }