r188571 - Thread safety analysis: new test case
DeLesley Hutchins
delesley at google.com
Fri Aug 16 11:28:00 PDT 2013
Author: delesley
Date: Fri Aug 16 13:28:00 2013
New Revision: 188571
URL: http://llvm.org/viewvc/llvm-project?rev=188571&view=rev
Log:
Thread safety analysis: new test case
Modified:
cfe/trunk/test/SemaCXX/warn-thread-safety-analysis.cpp
Modified: cfe/trunk/test/SemaCXX/warn-thread-safety-analysis.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/warn-thread-safety-analysis.cpp?rev=188571&r1=188570&r2=188571&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/warn-thread-safety-analysis.cpp (original)
+++ cfe/trunk/test/SemaCXX/warn-thread-safety-analysis.cpp Fri Aug 16 13:28:00 2013
@@ -4131,6 +4131,13 @@ public:
a = 0;
mu.Unlock();
}
+
+ void test10() {
+ if (!(c || !mu.TryLock())) {
+ a = 0;
+ mu.Unlock();
+ }
+ }
};
} // end namespace LogicalConditionalTryLock
More information about the cfe-commits
mailing list