commit | e520f0b308bd6dfd533fc74db74e04c8709c7de4 | [log] [tgz] |
---|---|---|
author | Dan Albert <danalbert@google.com> | Thu Feb 02 19:44:11 2017 +0000 |
committer | Dan Albert <danalbert@google.com> | Thu Feb 02 19:44:11 2017 +0000 |
tree | 0155a53f44a428ad67a2167f6311befc7bc4123f | |
parent | 1773efdab35500164383f996bbbe086c68409d35 [diff] |
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 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@293926 91177308-0d34-0410-b5e6-96231b3b80d8