binutils-gdb/gdb/testsuite/gdb.threads/tls-main.c

10 lines
175 B
C
Raw Normal View History

__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 */
}