libstdc++: testsuite: work around bitset namespace pollution
commit345d69a7de7102bf152b7705d564145a9a1c5b95
authorAlexandre Oliva <oliva@adacore.com>
Wed, 22 Jun 2022 02:11:00 +0000 (21 23:11 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Wed, 22 Jun 2022 02:11:00 +0000 (21 23:11 -0300)
treec9307f36f77e919c6d7f46164774fe171bd21a1c
parent7a1790ac6b475e9848e24200de9a1c44be422f5b
libstdc++: testsuite: work around bitset namespace pollution

rtems6 declares a global struct bitset in a header file included
indirectly by sys/types.h, that ambiguates the unqualified references
to bitset after "using namespace std" in the testsuite.

Work around the namespace pollution with using declarations of
std::bitset.

for  libstdc++-v3/ChangeLog

* testsuite/23_containers/bitset/cons/dr1325-2.cc: Work around
global struct bitset.
* testsuite/23_containers/bitset/ext/15361.cc: Likewise.
* testsuite/23_containers/bitset/input/1.cc: Likewise.
* testsuite/23_containers/bitset/to_string/1.cc: Likewise.
* testsuite/23_containers/bitset/to_string/dr396.cc: Likewise.
libstdc++-v3/testsuite/23_containers/bitset/cons/dr1325-2.cc
libstdc++-v3/testsuite/23_containers/bitset/ext/15361.cc
libstdc++-v3/testsuite/23_containers/bitset/input/1.cc
libstdc++-v3/testsuite/23_containers/bitset/to_string/1.cc
libstdc++-v3/testsuite/23_containers/bitset/to_string/dr396.cc