[libcxx-commits] [PATCH] D119260: [libc++] Enables put_long_double test for glibc.

Mark de Wever via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Feb 8 09:44:48 PST 2022


Mordante created this revision.
Mordante requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

Glibc adds a +-sign for NaN-values when showpos fmtflags are set.

[tab:ios.fmtflags]
showpos generates a + sign in non-negative generated numeric output

Since NaNs aren't negative this behaviour seems correct. Enable the test
for glibc and add ifdefs to make sure the existing tests still pass.

This was noticed while working on D118971 <https://reviews.llvm.org/D118971>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D119260

Files:
  libcxx/test/std/localization/locale.categories/category.numeric/locale.nm.put/facet.num.put.members/put_long_double.pass.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119260.406880.patch
Type: text/x-patch
Size: 19755 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220208/e4edc1f8/attachment-0001.bin>


More information about the libcxx-commits mailing list