alloc.fail.cpp 701 B

1234567891011121314151617181920212223242526
  1. //===----------------------------------------------------------------------===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. // <functional>
  9. // XFAIL: c++98, c++03, c++11, c++14
  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(int, char**)
  16. {
  17. std::function<int(int)> f(std::allocator_arg, std::allocator<int>());
  18. return 0;
  19. }