From: Jonathan Wakely Date: Wed, 22 Sep 2021 13:11:54 +0000 (+0100) Subject: libstdc++: Disable PCH for test that depends on a macro being defined X-Git-Tag: basepoints/gcc-13~4451 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8fa90926e08950cc00d0e22eace27402b9f9fa57;p=thirdparty%2Fgcc.git libstdc++: Disable PCH for test that depends on a macro being defined This test tries to ensure that can be included after defining _XOPEN_SOURCE=600, which doesn't test anything if that header is already included via the PCH before the macro definition. Disable PCH so that it behaves as intended. Signed-off-by: Jonathan Wakely libstdc++-v3/ChangeLog: * testsuite/19_diagnostics/headers/system_error/93151.cc: Disable PCH. --- diff --git a/libstdc++-v3/testsuite/19_diagnostics/headers/system_error/93151.cc b/libstdc++-v3/testsuite/19_diagnostics/headers/system_error/93151.cc index c54c9a3022df..6aca63d4db32 100644 --- a/libstdc++-v3/testsuite/19_diagnostics/headers/system_error/93151.cc +++ b/libstdc++-v3/testsuite/19_diagnostics/headers/system_error/93151.cc @@ -1,4 +1,5 @@ // { dg-do compile { target c++11 } } +// { dg-add-options no_pch } // Copyright (C) 2020-2021 Free Software Foundation, Inc. //