Skip to content

Commit 61954f9

Browse files
gbMattNvitalybuka
authored andcommitted
Fixed the test and its formatting
1 parent 9062012 commit 61954f9

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

compiler-rt/test/tsan/many_held_mutex.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
// RUN: %clangxx_tsan %s -fsanitize=thread -o %t && %run %t 2>&1 | Filecheck %s
1+
// RUN: %clangxx_tsan %s -fsanitize=thread -o %t && %run %t 2>&1 | FileCheck %s
22

33
#include <mutex>
44
#include <stdio.h>
55

6-
int main(){
7-
const unsigned short NUM_OF_MTX = 128;
8-
std::mutex mutexes[NUM_OF_MTX];
6+
int main() {
7+
const unsigned short NUM_OF_MTX = 128;
8+
std::mutex mutexes[NUM_OF_MTX];
99

10-
for(int i = 0; i < NUM_OF_MTX; i++){
11-
mutexes[i].lock();
12-
}
13-
for(int i = 0; i < NUM_OF_MTX; i++){
14-
mutexes[i].unlock();
15-
}
10+
for (int i = 0; i < NUM_OF_MTX; i++) {
11+
mutexes[i].lock();
12+
}
13+
for (int i = 0; i < NUM_OF_MTX; i++) {
14+
mutexes[i].unlock();
15+
}
1616

17-
printf("Success\n");
17+
printf("Success\n");
1818

19-
return 0;
19+
return 0;
2020
}
2121

2222
// CHECK: Success

0 commit comments

Comments
 (0)