From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id 7B6BD388A031; Mon, 12 Apr 2021 10:35:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7B6BD388A031 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 r11-8127] libstdc++: Fix test that fails in C++20 mode [PR 99995] X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/master X-Git-Oldrev: c02c39fad02c386f6e687e28282973f580fc95ac X-Git-Newrev: 29046e02b84a16b6315d952d7f76c502d0d021c2 Message-Id: <20210412103529.7B6BD388A031@sourceware.org> Date: Mon, 12 Apr 2021 10:35:29 +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: Mon, 12 Apr 2021 10:35:29 -0000 https://gcc.gnu.org/g:29046e02b84a16b6315d952d7f76c502d0d021c2 commit r11-8127-g29046e02b84a16b6315d952d7f76c502d0d021c2 Author: Jonathan Wakely Date: Mon Apr 12 11:12:47 2021 +0100 libstdc++: Fix test that fails in C++20 mode [PR 99995] The 17_intro/headers/c++1998/49745.cc test fails for C++20 mode with PCH enabled, because PCH makes it include , which includes , and that includes in C++20 mode. The dependency should go away when C++20 atomic waiting is stable, but will probably remain while the feature is experimental. Change the test to always include , and XFAIL for C++20 and later. libstdc++-v3/ChangeLog: PR libstdc++/99995 * testsuite/17_intro/headers/c++1998/49745.cc: Include all standard headers and XFAIL for effective-target c++20. Diff: --- libstdc++-v3/testsuite/17_intro/headers/c++1998/49745.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/testsuite/17_intro/headers/c++1998/49745.cc b/libstdc++-v3/testsuite/17_intro/headers/c++1998/49745.cc index a13a40ec7db..204975e0316 100644 --- a/libstdc++-v3/testsuite/17_intro/headers/c++1998/49745.cc +++ b/libstdc++-v3/testsuite/17_intro/headers/c++1998/49745.cc @@ -18,5 +18,7 @@ // . // libstdc++/49745 -#include +#include int truncate = 0; + +// { dg-xfail-if "PR libstdc++/99995" { c++20 } }