alloc.pass.cpp 655 B

123456789101112131415161718192021222324252627
  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 A> function(allocator_arg_t, const A&);
  12. #include <functional>
  13. #include <cassert>
  14. #include "min_allocator.h"
  15. int main()
  16. {
  17. {
  18. std::function<int(int)> f(std::allocator_arg, bare_allocator<int>());
  19. assert(!f);
  20. }
  21. }