alloc.pass.cpp 632 B

12345678910111213141516171819202122232425
  1. //===----------------------------------------------------------------------===//
  2. //
  3. // The LLVM Compiler Infrastructure
  4. //
  5. // This file is distributed under the University of Illinois Open Source
  6. // License. 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 "../test_allocator.h"
  15. int main()
  16. {
  17. std::function<int(int)> f(std::allocator_arg, test_allocator<int>());
  18. assert(!f);
  19. }