[libcxx-commits] [libc] [libcxx] [llvm] [libcxx][libc] Hand in Hand PoC with from_chars (PR #91651)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Sep 25 09:28:37 PDT 2024
================
@@ -260,6 +260,10 @@
#define TEST_IGNORE_NODISCARD (void)
+#if defined(_LIBCPP_AVAILABILITY_HAS_FROM_CHARS_FLOATING_POINT) && _LIBCPP_AVAILABILITY_HAS_FROM_CHARS_FLOATING_POINT
----------------
ldionne wrote:
```suggestion
#if !(defined(_LIBCPP_VERSION) && !_LIBCPP_AVAILABILITY_HAS_FROM_CHARS_FLOATING_POINT)
```
`_LIBCPP_AVAILABILITY_HAS_FROM_CHARS_FLOATING_POINT` is always defined when we're testing against libc++. Also, if we test the negative form, we will enable the floating point tests on non-libc++ implementations by default, which is what we want.
https://github.com/llvm/llvm-project/pull/91651
More information about the libcxx-commits
mailing list