summaryrefslogtreecommitdiff
path: root/test/tsan/deadlock_detector_stress_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/tsan/deadlock_detector_stress_test.cc')
-rw-r--r--test/tsan/deadlock_detector_stress_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/tsan/deadlock_detector_stress_test.cc b/test/tsan/deadlock_detector_stress_test.cc
index 2876581c1..e14eda32a 100644
--- a/test/tsan/deadlock_detector_stress_test.cc
+++ b/test/tsan/deadlock_detector_stress_test.cc
@@ -71,7 +71,7 @@ class PthreadRWLock {
class LockTest {
public:
- LockTest(size_t n) : n_(n), locks_(new LockType[n]) { }
+ explicit LockTest(size_t n) : n_(n), locks_(new LockType[n]) { }
~LockTest() { delete [] locks_; }
void L(size_t i) {
assert(i < n_);
@@ -282,7 +282,7 @@ class LockTest {
LockType *locks_;
};
-int main () {
+int main() {
{ LockTest t(5); t.Test1(); }
{ LockTest t(5); t.Test2(); }
{ LockTest t(5); t.Test3(); }