alloc.fail.cpp 664 B

12345678910111213141516171819202122232425
  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. // XFAIL: c++98, c++03, c++11, c++14
  11. // class function<R(ArgTypes...)>
  12. // template<class A> function(allocator_arg_t, const A&);
  13. #include <functional>
  14. #include <cassert>
  15. #include "min_allocator.h"
  16. int main()
  17. {
  18. std::function<int(int)> f(std::allocator_arg, std::allocator<int>());
  19. }