charconv.pass.cpp 870 B

123456789101112131415161718192021222324252627282930313233
  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. //
  9. // <charconv> feature macros
  10. /* Constant Value
  11. __cpp_lib_to_chars 201611L
  12. */
  13. #include <charconv>
  14. #include <cassert>
  15. #include "test_macros.h"
  16. int main(int, char**)
  17. {
  18. // ensure that the macros that are supposed to be defined in <utility> are defined.
  19. /*
  20. #if !defined(__cpp_lib_fooby)
  21. # error "__cpp_lib_fooby is not defined"
  22. #elif __cpp_lib_fooby < 201606L
  23. # error "__cpp_lib_fooby has an invalid value"
  24. #endif
  25. */
  26. return 0;
  27. }