[all-commits] [llvm/llvm-project] ece0f7: [libc++] Enables put_long_double test for glibc.

mordante via All-commits all-commits at lists.llvm.org
Wed Feb 9 08:13:26 PST 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ece0f70664af27f38f3538587903096a5cb1e3d9
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2022-02-09 (Wed, 09 Feb 2022)

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

  Log Message:
  [libc++] Enables put_long_double test for glibc.

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

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.

Reviewed By: #libc, ldionne

Differential Revision: https://reviews.llvm.org/D119260

More information about the All-commits mailing list