old-cross-binutils/gdb/testsuite/gdb.threads/tls-main.c
Elena Zannoni 8bc2021fdc 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
* 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.
2003-07-22 15:49:45 +00:00

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