xref: /netbsd-src/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.threads/tls-main.c (revision c38e7cc395b1472a774ff828e46123de44c628e9)
1 int foo (void);
2 __thread int i_tls = 2;
3 int main ()
4 {
5   int result;
6   result = foo (); /* Call to foo should return 2, not 1.  */
7   result ++;
8   return 0; /* break here to check result */
9 }
10 
11