IVOPT performance tuning patch. The main problem is a variant of maximal weight
[official-gcc.git] / gcc / testsuite / gcc.dg / tls / thr-init-2.c
blob6d00d8ce39ede052bcd87b1fd258850b29667d75
1 /* { dg-require-effective-target tls } */
2 /* { dg-do run } */
4 extern void abort() ;
6 static __thread int fstat ;
7 static __thread int fstat = 1;
9 int test_code(int b)
11 fstat += b ;
12 return fstat;
15 int main (int ac, char *av[])
17 int a = test_code(1);
19 if ((a != 2) || (fstat != 2))
20 abort () ;
22 return 0;