diff --git a/libstdc++-v3/testsuite/24_iterators/move_iterator/p2520r0.cc b/libstdc++-v3/testsuite/24_iterators/move_iterator/p2520r0.cc index 883d6cc09e0..e36ac574a8e 100644 --- a/libstdc++-v3/testsuite/24_iterators/move_iterator/p2520r0.cc +++ b/libstdc++-v3/testsuite/24_iterators/move_iterator/p2520r0.cc @@ -1,5 +1,6 @@ // { dg-options "-std=gnu++20" } // { dg-do compile { target c++20 } } +// { dg-add-options no_pch } // Verify P2520R0 changes to move_iterator's iterator_concept, which we treat // as a DR against C++20. diff --git a/libstdc++-v3/testsuite/std/format/functions/format.cc b/libstdc++-v3/testsuite/std/format/functions/format.cc index a8d5b652a5e..4db5202815d 100644 --- a/libstdc++-v3/testsuite/std/format/functions/format.cc +++ b/libstdc++-v3/testsuite/std/format/functions/format.cc @@ -1,5 +1,6 @@ // { dg-options "-std=gnu++20" } // { dg-do run { target c++20 } } +// { dg-add-options no_pch } #include diff --git a/libstdc++-v3/testsuite/std/format/functions/format_c++23.cc b/libstdc++-v3/testsuite/std/format/functions/format_c++23.cc index f20c46cd7e3..3caa70fcdf2 100644 --- a/libstdc++-v3/testsuite/std/format/functions/format_c++23.cc +++ b/libstdc++-v3/testsuite/std/format/functions/format_c++23.cc @@ -1,4 +1,5 @@ // { dg-do run { target c++23 } } +// { dg-add-options no_pch } // This test does not have -std=gnu++20 in dg-options so that format.cc // can be tested for e.g. -std=c++26 #include "format.cc"