aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-10-13 23:22:02 +0100
committerSam James <sam@gentoo.org>2024-10-13 23:22:11 +0100
commit90a4851b08270678352f4f53f86d94af78647499 (patch)
tree4c9bb9ae9940c27c57b2baebbbd4e2bb5694728a /libstdc++-v3/testsuite
parent27f6b376e8e196c7c85c8b47436cd2f2993768da (diff)
downloadgcc-90a4851b08270678352f4f53f86d94af78647499.zip
gcc-90a4851b08270678352f4f53f86d94af78647499.tar.gz
gcc-90a4851b08270678352f4f53f86d94af78647499.tar.bz2
libstdc++: testsuite: adjust name_fortify test for pre-defined _FORTIFY_SOURCE
Otherwise we get failures with toolchains that have _FORTIFY_SOURCE defined already to a different value like 3. libstdc++-v3/ChangeLog: * testsuite/17_intro/names_fortify.cc: Undefine _FORTIFY_SOURCE.
Diffstat (limited to 'libstdc++-v3/testsuite')
-rw-r--r--libstdc++-v3/testsuite/17_intro/names_fortify.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/17_intro/names_fortify.cc b/libstdc++-v3/testsuite/17_intro/names_fortify.cc
index c975412..f24af21 100644
--- a/libstdc++-v3/testsuite/17_intro/names_fortify.cc
+++ b/libstdc++-v3/testsuite/17_intro/names_fortify.cc
@@ -1,6 +1,7 @@
// { dg-do compile { target *-*-linux* } }
// { dg-add-options no_pch }
+#undef _FORTIFY_SOURCE
#define _FORTIFY_SOURCE 2
// Now we can define the macros to poison uses of non-reserved names:
#include "names.cc"