Sign in
android
/
toolchain
/
gdb
/
6946403d2926faf71fc214a9444ba6aca3b2ff5c
/
.
/
gdb-9.1
/
gdb
/
testsuite
/
gdb.threads
/
tls-nodebug.c
blob: d3b31b7609c717cd1aaeb2f1576cfbe5e5551748 [
file
] [
log
] [
blame
]
/* Test accessing TLS based variable without any debug info compiled. */
#include
<pthread.h>
__thread
int
thread_local
=
42
;
int
main
(
void
)
{
/* Ensure we link against pthreads even with --as-needed. */
pthread_testcancel
();
return
0
;
}