[cfe-commits] [libcxx] r151461 - /libcxx/trunk/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.obs/op_bool.pass.cpp
Howard Hinnant
hhinnant at apple.com
Sat Feb 25 13:43:14 PST 2012
Author: hhinnant
Date: Sat Feb 25 15:43:14 2012
New Revision: 151461
URL: http://llvm.org/viewvc/llvm-project?rev=151461&view=rev
Log:
update test for explicit bool operator.
Modified:
libcxx/trunk/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.obs/op_bool.pass.cpp
Modified: libcxx/trunk/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.obs/op_bool.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.obs/op_bool.pass.cpp?rev=151461&r1=151460&r2=151461&view=diff
==============================================================================
--- libcxx/trunk/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.obs/op_bool.pass.cpp (original)
+++ libcxx/trunk/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.obs/op_bool.pass.cpp Sat Feb 25 15:43:14 2012
@@ -21,9 +21,9 @@
int main()
{
std::unique_lock<std::mutex> lk0;
- assert(lk0 == false);
+ assert(static_cast<bool>(lk0) == false);
std::unique_lock<std::mutex> lk1(m);
- assert(lk1 == true);
+ assert(static_cast<bool>(lk1) == true);
lk1.unlock();
- assert(lk1 == false);
+ assert(static_cast<bool>(lk1) == false);
}
More information about the cfe-commits
mailing list