libstdc++-v3/testsuite/30_threads/timed_mutex/121496.cc
raw| 1 | // { dg-do compile { target { { i?86-*-linux* x86_64-*-linux* } && lp64 } } } |
| 2 | // { dg-require-effective-target c++11 } |
| 3 | // { dg-options "-fsanitize=thread" } |
| 4 | |
| 5 | // PR libstdc++/121496 no member named '_M_clocklock' with -fsanitize=thread |
| 6 | |
| 7 | #include <mutex> |
| 8 | #include <chrono> |
| 9 | |
| 10 | void |
| 11 | test_pr121496(std::timed_mutex& m) |
| 12 | { |
| 13 | (void) m.try_lock_until(std::chrono::steady_clock::time_point{}); |
| 14 | } |