[PATCH] libstdc++: Add a __nonnnull__ attribute to std::string's _CharT* constructor
Ville Voutilainen
ville.voutilainen@gmail.com
Sun Jun 28 10:56:00 GMT 2020
2020-06-28 Ville Voutilainen <ville.voutilainen@gmail.com>
Add a __nonnnull__ attribute to std::string's _CharT* constructor
* include/bits/basic_string.h (string(_CharT*, const _Alloc&)):
Add a __nonnull__ attribute.
* testsuite/21_strings/basic_string/cons/char/nonnull.cc: New.
* testsuite/21_strings/basic_string/cons/wchar_t/nonnull.cc: Likewise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: string-null.diff
Type: text/x-patch
Size: 3451 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/libstdc++/attachments/20200628/e882ce08/attachment-0001.bin>
More information about the Libstdc++
mailing list