00:00 2001
> > From: =?UTF-8?q?Arsen=20Arsenovi=C4=87?=
> > Date: Wed, 8 Mar 2023 17:01:24 +0100
> > Subject: [PATCH 2/4] libstdc++: Add a test for FTM redefinitions
> >
> > This test detects redefinitions by compiling stdc++.h with
> > -Wsystem-headers.
24 +0100
> Subject: [PATCH 2/4] libstdc++: Add a test for FTM redefinitions
>
> This test detects redefinitions by compiling stdc++.h with
> -Wsystem-headers. Thanks Patrick Palka for the suggestion.
>
> libstdc++-v3/ChangeLog:
>
> * testsuite/17_intro/versionconflict.cc
_GLIBCXX_TESTING_SYSHDR
> #pragma GCC system_header
> +#endif
>#include
> Then the test could define that macro instead of using -Wsystem-headers.
>
> Could you see if that works?
Good idea. Both the positive and negative cases work when implemented
like this:
From 98d30
On 05/04/23 01:09 +0200, Arsen Arsenović wrote:
This test detects redefinitions by compiling stdc++.h with
-Wsystem-headers. Thanks Patrick Palka for the suggestion.
libstdc++-v3/ChangeLog:
* testsuite/17_intro/versionconflict.cc: New test.
---
libstdc++-v3/testsuite/17_intro/versionco
This test detects redefinitions by compiling stdc++.h with
-Wsystem-headers. Thanks Patrick Palka for the suggestion.
libstdc++-v3/ChangeLog:
* testsuite/17_intro/versionconflict.cc: New test.
---
libstdc++-v3/testsuite/17_intro/versionconflict.cc | 6 ++
1 file changed, 6 insertion