Skip to content
Snippets Groups Projects
Unverified Commit 90a4851b authored by Sam James's avatar Sam James
Browse files

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.
parent 27f6b376
No related branches found
No related tags found
No related merge requests found
// { 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"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment