eq.pass.cpp 832 B

12345678910111213141516171819202122232425262728293031323334
  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. // <memory>
  9. // allocator:
  10. // template <class T1, class T2>
  11. // bool
  12. // operator==(const allocator<T1>&, const allocator<T2>&) throw();
  13. //
  14. // template <class T1, class T2>
  15. // bool
  16. // operator!=(const allocator<T1>&, const allocator<T2>&) throw();
  17. #include <memory>
  18. #include <cassert>
  19. #include "test_macros.h"
  20. int main(int, char**)
  21. {
  22. std::allocator<int> a1;
  23. std::allocator<int> a2;
  24. assert(a1 == a2);
  25. assert(!(a1 != a2));
  26. return 0;
  27. }