[all-commits] [llvm/llvm-project] b3445c: [libc++][test] Portability fix of std::strstreambu...
Louis Dionne via All-commits
all-commits at lists.llvm.org
Mon Sep 14 14:09:29 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: b3445c839fac0bbe174f85e39e9b08756c847465
https://github.com/llvm/llvm-project/commit/b3445c839fac0bbe174f85e39e9b08756c847465
Author: Louis Dionne <ldionne at apple.com>
Date: 2020-09-14 (Mon, 14 Sep 2020)
Changed paths:
M libcxx/test/std/depr/depr.str.strstreams/depr.strstreambuf/depr.strstreambuf.cons/default.pass.cpp
Log Message:
-----------
[libc++][test] Portability fix of std::strstreambuf constructor test
The standard does not require the constructor `strstreambuf(streamsize alsize_arg = 0)`
leave the stream array unallocated when called with parameter `alsize_arg > 0`.
Conformant implementations of this constructor may allocate minimal `alsize_arg`
number of bytes forcing `str()` method to return non-null pointer.
Thanks to Andrey Maksimov for the patch.
Differential Revision: https://reviews.llvm.org/D72465
More information about the All-commits
mailing list