From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id 121E4385843E; Thu, 23 Sep 2021 15:08:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 121E4385843E MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jonathan Wakely To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r12-3862] libstdc++: Disable PCH for test that depends on a macro being defined X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/master X-Git-Oldrev: 477897451e46d67acb46f3ac45585e6eb9e7dde5 X-Git-Newrev: 8fa90926e08950cc00d0e22eace27402b9f9fa57 Message-Id: <20210923150847.121E4385843E@sourceware.org> Date: Thu, 23 Sep 2021 15:08:47 +0000 (GMT) X-BeenThere: libstdc++-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Sep 2021 15:08:47 -0000 https://gcc.gnu.org/g:8fa90926e08950cc00d0e22eace27402b9f9fa57 commit r12-3862-g8fa90926e08950cc00d0e22eace27402b9f9fa57 Author: Jonathan Wakely Date: Wed Sep 22 14:11:54 2021 +0100 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: --- libstdc++-v3/testsuite/19_diagnostics/headers/system_error/93151.cc | 1 + 1 file changed, 1 insertion(+) 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 c54c9a3022d..6aca63d4db3 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. //