lt.pass.cpp 768 B

123456789101112131415161718192021222324252627282930
  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. // <system_error>
  9. // class error_code
  10. // bool operator<(const error_code& lhs, const error_code& rhs);
  11. #include <system_error>
  12. #include <string>
  13. #include <cassert>
  14. #include "test_macros.h"
  15. int main(int, char**)
  16. {
  17. {
  18. const std::error_code ec1(6, std::generic_category());
  19. const std::error_code ec2(7, std::generic_category());
  20. assert(ec1 < ec2);
  21. }
  22. return 0;
  23. }