void f()
{
auto now=std::chrono::steady_clock::now();
- test_mutex.try_lock_until(now + std::chrono::seconds(11));
+ (void)test_mutex.try_lock_until(now + std::chrono::seconds(11));
--global;
std::this_thread::sleep_for(std::chrono::seconds(1));
test_mutex.unlock();
std::thread t(f);
std::this_thread::sleep_for(std::chrono::seconds(1));
auto now=std::chrono::steady_clock::now();
- test_mutex.try_lock_until(now + std::chrono::seconds(11));
+ (void)test_mutex.try_lock_until(now + std::chrono::seconds(11));
++global;
test_mutex.unlock();
t.join();
return (void*)12345;
}
-__attribute__((noinline)) void* operator new (std::size_t n, std::nothrow_t const &)
+__attribute__((noinline)) void* operator new (std::size_t n, std::nothrow_t const &) noexcept
{
return (void*)23456;
}
return (void*)34567;
}
-__attribute__((noinline)) void* operator new[] (std::size_t n, std::nothrow_t const &)
+__attribute__((noinline)) void* operator new[] (std::size_t n, std::nothrow_t const &) noexcept
{
return (void*)45678;
}
return (void*)89012;
}
-__attribute__((noinline)) void operator delete (void* p)
+__attribute__((noinline)) void operator delete (void* p) noexcept
{
}
-__attribute__((noinline)) void operator delete[] (void* p)
+__attribute__((noinline)) void operator delete[] (void* p) noexcept
{
}