repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge from trunk
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
tsan
/
thread_leak.c
blob
02deaba5846b9c712b7ac54f7b678b797f81c6d1
1
#include <pthread.h>
2
#include <stdio.h>
3
4
void
*
Thread
(
void
*
x
) {
5
return
0
;
6
}
7
8
int
main
() {
9
pthread_t t
;
10
pthread_create
(&
t
,
0
,
Thread
,
0
);
11
pthread_join
(
t
,
0
);
12
printf
(
"PASS
\n
"
);
13
return
0
;
14
}
15
16
/* { dg-prune-output "WARNING: ThreadSanitizer: thread leak.*" } */