Thread safety analysis: new test case

llvm-svn: 188571
This commit is contained in:
DeLesley Hutchins 2013-08-16 18:28:00 +00:00
parent dd2a6afee2
commit d40542213c
1 changed files with 7 additions and 0 deletions

View File

@ -4131,6 +4131,13 @@ public:
a = 0;
mu.Unlock();
}
void test10() {
if (!(c || !mu.TryLock())) {
a = 0;
mu.Unlock();
}
}
};
} // end namespace LogicalConditionalTryLock