]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Disable PCH for tests that rely on include order
authorJonathan Wakely <jwakely@redhat.com>
Wed, 16 Aug 2023 20:29:46 +0000 (21:29 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 17 Aug 2023 07:42:45 +0000 (08:42 +0100)
commit51d702f3baf73aa4016b9798045d13318074ca1e
tree3ea75ccc4dcd8a19ba186b333b98e82169de2f55
parent91315f23ba127ea4d1a584023bae34e143f6eb8c
libstdc++: Disable PCH for tests that rely on include order

These tests expect to be able to #undef a feature test macro and then
include <version> to get it redefined. But if <version> has already been
included by the <bits/stdc++.h> PCH then including it again does nothing
and the macro remains undefined.

libstdc++-v3/ChangeLog:

* testsuite/24_iterators/move_iterator/p2520r0.cc: Add no_pch.
* testsuite/std/format/functions/format.cc: Likewise.
* testsuite/std/format/functions/format_c++23.cc: Likewise.
libstdc++-v3/testsuite/24_iterators/move_iterator/p2520r0.cc
libstdc++-v3/testsuite/std/format/functions/format.cc
libstdc++-v3/testsuite/std/format/functions/format_c++23.cc