llvm-project/libcxx/test/std/thread/thread.threads/thread.thread.class/thread.thread.constr
Arthur O'Dwyer 40950a44b9 [libc++] ADL-proof <thread>, and eliminate `using namespace chrono`.
Since we know exactly which identifiers we expect to find in `chrono`,
a using-directive seems like massive overkill. Remove the directives
and qualify the names as needed.

One subtle trick here: In two places I replaced `*__p` with `*__p.get()`.
The former is an unqualified call to `operator*` on a class type, which
triggers ADL and breaks the new test. The latter is a call to the
built-in `operator*` on pointers, which specifically
does NOT trigger ADL thanks to [over.match.oper]/1.

Differential Revision: https://reviews.llvm.org/D92243
2020-12-01 22:13:39 -05:00
..
F.pass.cpp
constr.compile.fail.cpp [libc++] Introduce an indirection to create threads in the test suite 2020-11-27 11:54:19 -05:00
copy.compile.fail.cpp [libc++] Introduce an indirection to create threads in the test suite 2020-11-27 11:54:19 -05:00
default.pass.cpp Add include for 'test_macros.h' to all the tests that were missing them. Thanks to Zoe for the (big, but simple) patch. NFC intended. 2019-05-31 18:35:30 +00:00
move.pass.cpp [libc++] Introduce an indirection to create threads in the test suite 2020-11-27 11:54:19 -05:00
robust_against_adl.pass.cpp [libc++] ADL-proof <thread>, and eliminate `using namespace chrono`. 2020-12-01 22:13:39 -05:00