]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Move test for __cpp_lib_not_fn to version.cc
authorLuc Grosheintz <luc.grosheintz@gmail.com>
Tue, 23 Sep 2025 12:34:41 +0000 (14:34 +0200)
committerTomasz Kamiński <tkaminsk@redhat.com>
Wed, 24 Sep 2025 12:35:19 +0000 (14:35 +0200)
commit41c95d5e53e66a97831e8c6ecdfca62e6f0dab4f
tree6294533640916a84c341061549bd22c1053b2969
parent1f6b1ed047105103c2fba9696fd0ed17ec5e1405
libstdc++: Move test for __cpp_lib_not_fn to version.cc

When running the tests without pre-compiled headers
(--disable-libstdcxx-pch), the test fails, because the feature
testing macro (FTM) isn't defined yet.

This commit moves checking the FTM to a dedicated file (version.cc)
that's run without PCH.

libstdc++-v3/ChangeLog:

* testsuite/20_util/function_objects/not_fn/nttp.cc: Move
test of feature testing macro to version.cc
* testsuite/20_util/function_objects/not_fn/version.cc: New test.

Reviewed-by: Jonathan Wakely <jwakely@redhat.com>
Co-authored-by: Tomasz Kamiński <tkaminsk@redhat.com>
Signed-off-by: Luc Grosheintz <luc.grosheintz@gmail.com>
Signed-off-by: Tomasz Kamiński <tkaminsk@redhat.com>
libstdc++-v3/testsuite/20_util/function_objects/not_fn/nttp.cc
libstdc++-v3/testsuite/20_util/function_objects/not_fn/version.cc [new file with mode: 0644]