forked from OSchip/llvm-project
[TSan] Fix style warinings in output test
llvm-svn: 162980
This commit is contained in:
parent
5aed004cf1
commit
66ca36a564
|
@ -8,7 +8,7 @@ void *Thread1(void *p) {
|
|||
}
|
||||
|
||||
void *Thread2(void *p) {
|
||||
*(int*)p = 44;;
|
||||
*(int*)p = 44;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -16,7 +16,7 @@ void *alloc() {
|
|||
return malloc(99);
|
||||
}
|
||||
|
||||
void *AllocThread(void*) {
|
||||
void *AllocThread(void* arg) {
|
||||
return alloc();
|
||||
}
|
||||
|
||||
|
@ -35,12 +35,11 @@ int main() {
|
|||
|
||||
// CHECK: addr=[[ADDR:0x[0-9,a-f]+]]
|
||||
// CHECK: WARNING: ThreadSanitizer: data race
|
||||
//...
|
||||
// ...
|
||||
// CHECK: Location is heap block of size 99 at [[ADDR]] allocated by thread 1:
|
||||
// CHECK: #0 alloc
|
||||
// CHECK: #1 AllocThread
|
||||
//...
|
||||
// ...
|
||||
// CHECK: Thread 1 (finished) created at:
|
||||
// CHECK: #0 pthread_create
|
||||
// CHECK: #1 main
|
||||
|
||||
|
|
Loading…
Reference in New Issue