re-enable tls and lto tests for ObjC/C++
[official-gcc/alias-decl.git] / gcc / testsuite / obj-c++.dg / torture / tls / thr-init-1.mm
blob62e322ed14b41c133155379f6d70e1a42a8fa9c1
1 // { dg-do run }
2 // { dg-require-effective-target tls }
3 // { dg-add-options tls }
5 extern "C" {
6 extern void abort ();
9 static __thread int fstat = 1;
11 int test_code(int b)
13   fstat += b ;
14   return fstat;
17 int main (int ac, char *av[])
19   int a = test_code(1);
20   
21   if ( a != 2 || fstat != 2 ) 
22     abort ();
23   
24   return 0;