]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Fix test for libstdc++ not including <unistd.h> [PR100117]
authorJonathan Wakely <jwakely@redhat.com>
Wed, 10 Nov 2021 11:43:46 +0000 (11:43 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 10 Nov 2021 12:03:29 +0000 (12:03 +0000)
commit77963796aef8aa07993c0bc757c15848fab7432a
tree5f61b6b7ac54cb39422143dc81d22dd364c822cb
parent80fe172ba9820199c2bbce5d0611ffca27823049
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>
libstdc++-v3/testsuite/17_intro/headers/c++1998/49745.cc