8bc2021fdc
* gdb.threads/tls.c : New file. * gdb.threads/tls.exp : New file. * gdb.threads/tls-main.c : New file. * gdb.threads/tls-shared.c : New file. * gdb.threads/tls-shared.exp : New file.
9 lines
175 B
C
9 lines
175 B
C
__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 */
|
|
}
|
|
|