Sign in
gnu
/
binutils-gdb
/
60d09f0a0d8000359b8f1dd14b51e7f013ea9e5c
/
.
/
gdb
/
testsuite
/
gdb.threads
/
tls-main.c
blob: 56675e9cd45e3d3fa664bde4af0c859210a44f92 [
file
] [
log
] [
blame
]
int
foo
(
void
);
__thread
int
i_tls
=
2
;
int
main
()
{
int
result
;
result
=
foo
();
/* Call to foo should return 2, not 1. */
result
++;
return
0
;
/* break here to check result */
}