xref: /netbsd-src/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.threads/tls-main.c (revision a5a4af3bd380a7b58b758d9b311cef9f7c34aeb4)
1 int foo (void);
2 __thread int i_tls = 2;
main()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