]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Add a test for <version> FTM redefinitions
authorArsen Arsenović <arsen@aarsen.me>
Wed, 8 Mar 2023 16:01:24 +0000 (17:01 +0100)
committerArsen Arsenović <arsen@aarsen.me>
Wed, 5 Apr 2023 16:45:14 +0000 (18:45 +0200)
commit6f0d67b912900009bff5018bd58e17ea1db1de69
tree8cd5cd11a20e511d0ec7eed0d126e1dba1cbef5b
parent9d63ce7c4c0a993c419dceb823e71cba5da99e24
libstdc++: Add a test for <version> FTM redefinitions

This test detects redefinitions by compiling stdc++.h and <version>, by
disabling the system_header pragma on the latter, to allow warnings in
it.  Thanks Patrick Palka for the suggestion.

libstdc++-v3/ChangeLog:

* testsuite/17_intro/versionconflict.cc: New test.
* include/std/version: Allow disabling the system_header pragma
via _GLIBCXX_TESTING_SYSHDR.
libstdc++-v3/include/std/version
libstdc++-v3/testsuite/17_intro/versionconflict.cc [new file with mode: 0644]