]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Test 17_intro/names.cc with -D_FORTIFY_SOURCE=2 [PR116210]
authorJonathan Wakely <jwakely@redhat.com>
Fri, 4 Oct 2024 11:40:47 +0000 (12:40 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 9 Oct 2024 13:05:50 +0000 (14:05 +0100)
commit4f97411c0d45dc3d04b5d16384fee111889a7c41
tree3e7fea9d7a945fb98290fadfa4586a539cd487ce
parent5247ee086f7fff5c6e7cd837478974dbfc2782db
libstdc++: Test 17_intro/names.cc with -D_FORTIFY_SOURCE=2 [PR116210]

Add a new testcase that repeats 17_intro/names.cc but with
_FORTIFY_SOURCE defined, to find problems in Glibc fortify wrappers like
https://sourceware.org/bugzilla/show_bug.cgi?id=32052 (which is fixed
now).

libstdc++-v3/ChangeLog:

PR libstdc++/116210
* testsuite/17_intro/names.cc (sz): Undef for versions of Glibc
that use it in the fortify wrappers.
* testsuite/17_intro/names_fortify.cc: New test.
libstdc++-v3/testsuite/17_intro/names.cc
libstdc++-v3/testsuite/17_intro/names_fortify.cc [new file with mode: 0644]