llvm-project/libcxx/test/std/language.support
Ed Schouten 0a92402436 Remove mblen(), mbtowc() and wctomb() from the thread-unsafe functions.
Back in r240527 I added a knob to prevent thread-unsafe functions from
being exposed. mblen(), mbtowc() and wctomb() were also added to this
list, as the latest issue of POSIX doesn't require these functions to be
thread-safe.

It turns out that the only circumstance in which these functions are not
thread-safe is in case they are used in combination with state-dependent
character sets (e.g., Shift-JIS). According to Austin Group Bug 708,
these character sets "[...] are mostly a relic of the past and which
were never supported on most POSIX systems".

Though in many cases the use of these functions can be prevented by
using the reentrant counterparts, they are the only functions that allow
you to query whether the locale's character set is state-dependent. This
means that omitting these functions removes actual functionality.

Let's be a bit less pedantic and drop the guards around these functions.

Links:
http://austingroupbugs.net/view.php?id=708
http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2037.htm

Reviewed by:	ericwf
Differential Revision:	https://reviews.llvm.org/D21436

llvm-svn: 290748
2016-12-30 10:44:00 +00:00
..
cstdint/cstdint.syn Avoid applying unary minus to unsigned integers. Patch from STL@microsoft.com 2016-06-30 04:21:52 +00:00
support.dynamic Fix unused parameters and variables 2016-12-23 23:37:52 +00:00
support.exception Protect nested-exceptions tests under no-exceptions 2016-11-14 11:00:28 +00:00
support.general
support.initlist [libcxx] [test] D27022: Fix MSVC warning C4389 "signed/unsigned mismatch", part 9/12. 2016-12-06 01:13:14 +00:00
support.limits [libcxx] [test] Fix MSVC warning C4244 "conversion from 'X' to 'Y', possible loss of data", part 7/7. 2016-12-08 21:38:57 +00:00
support.rtti Move all tests for _LIBCPP_VERSION in language.support to test/libcxx/language.support. 2016-06-22 01:55:59 +00:00
support.runtime Remove mblen(), mbtowc() and wctomb() from the thread-unsafe functions. 2016-12-30 10:44:00 +00:00
support.start.term
support.types Fix nullptr tests 2016-10-25 20:45:17 +00:00
nothing_to_do.pass.cpp