libstdc++: Fix failing tests for AIX
authorJonathan Wakely <jwakely@redhat.com>
Tue, 11 Aug 2020 15:16:22 +0000 (16:16 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 11 Aug 2020 15:16:22 +0000 (16:16 +0100)
commitfe8d7fec4db838cae536eeef1965db83959cf6ee
treee7338d03750589fa72769955ea44d6f5a4bf1bda
parent18095be17013444d9e91aa8c73ebe5cf58ccb3f1
libstdc++: Fix failing tests for AIX

These two tests fail on AIX because <sys/thread.h> defines struct thread
in the global namespace (despite it not being a reserved name). That
means the using-declaration that adds it to the global namespace causes
a redeclaration error.

libstdc++-v3/ChangeLog:

* testsuite/30_threads/thread/cons/84535.cc: Use a custom
namespace.
* testsuite/30_threads/thread/cons/lwg2097.cc: Likewise.
libstdc++-v3/testsuite/30_threads/thread/cons/84535.cc
libstdc++-v3/testsuite/30_threads/thread/cons/lwg2097.cc