repo.or.cz
/
binutils-gdb.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[gdb/symtab] Fix gdb.base/fission-macro.exp with unix/-m32
[binutils-gdb.git]
/
gdb
/
testsuite
/
gdb.threads
/
tls-shared.c
blob
02b13083ab9331aa44ab03cd3a2dee6d171bffb7
1
2
#include <pthread.h>
3
4
__thread
int
i_tls
=
1
;
5
int
foo
()
6
{
7
/* Ensure we link against pthreads even with --as-needed. */
8
pthread_testcancel
();
9
return
i_tls
;
10
}
11