llvm-project/libcxx/test/std
Dan Albert f9dc6670bc Avoid implementation defined behavior in a test.
Summary:
num_put::put uses %p for pointer types, but the exact format of %p is
implementation defined behavior for the C library. Compare output to
snprintf for portability.

Reviewers: EricWF, mclow.lists

Reviewed By: EricWF

Subscribers: cfe-commits

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

llvm-svn: 293926
2017-02-02 19:44:11 +00:00
..
algorithms Enable the -Wsign-compare warning to better support MSVC 2016-12-11 05:31:00 +00:00
atomics [libcxx] [test] D27027: Strip trailing whitespace. 2016-11-23 22:03:28 +00:00
containers Change the return type of emplace_[front|back] back to void when building with C++14 or before. Resolves PR31680. 2017-01-24 23:09:12 +00:00
depr Remove auto_ptr in C++17. Get it back by defining _LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR 2017-01-24 22:22:33 +00:00
diagnostics Extend XFAIL to c++98. 2017-02-02 11:56:26 +00:00
experimental Implement LWG2733: [fund.ts.v2] gcd / lcm and bool. We already did tbis for C++17, so replicate the changes in experimental. 2017-01-24 18:15:48 +00:00
input.output [libcxx] [test] Fix comment typos, strip trailing whitespace. 2017-01-18 20:10:25 +00:00
iterators [libcxx] [test] Fix comment typos, strip trailing whitespace. 2017-01-18 20:10:25 +00:00
language.support Fix type_info's constructor by making it explicit again. 2017-01-17 23:41:42 +00:00
localization Avoid implementation defined behavior in a test. 2017-02-02 19:44:11 +00:00
numerics Fix unused parameters and variables 2016-12-23 23:37:52 +00:00
re Fix bug #31387 - not checking end iterator when parsing decimal escape. Thanks to Karen for the report. 2016-12-24 17:21:03 +00:00
strings Fix up some no-exception compile failures 2017-01-31 13:12:32 +00:00
thread Implement LWG2556: Wide contract for future::share() 2017-01-24 23:28:25 +00:00
utilities Remove auto_ptr in C++17. Get it back by defining _LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR 2017-01-24 22:22:33 +00:00
nothing_to_do.pass.cpp