https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100117
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>: https://gcc.gnu.org/g:77963796aef8aa07993c0bc757c15848fab7432a commit r12-5109-g77963796aef8aa07993c0bc757c15848fab7432a Author: Jonathan Wakely <jwak...@redhat.com> Date: Wed Nov 10 11:43:46 2021 +0000 libstdc++: Fix test for libstdc++ not including <unistd.h> [PR100117] The <cxxx> headers for the C library are not under our control, so we can't prevent them from including <unistd.h>. Change the PR 49745 test to only include the C++ library headers, not the <cxxx> ones. To ensure <bits/stdc++.h> isn't included automatically we need to use no_pch to disable PCH. libstdc++-v3/ChangeLog: PR libstdc++/100117 * testsuite/17_intro/headers/c++1998/49745.cc: Explicitly list all C++ headers instead of including <bits/stdc++.h>