Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / tls / static-1.C
blob2392c6346190fa77362ea5198674f3490b2c0074
1 // { dg-do run }
2 // { dg-options "-O2" }
3 // { dg-additional-sources "static-1a.cc" }
4 // { dg-require-effective-target tls_runtime }
6 extern "C" void abort ();
7 extern int test ();
9 struct A
11   static __thread int i;
14 __thread int A::i = 8;
16 int
17 main ()
19   if (A::i != 8)
20     abort ();
22   if (test ())
23     abort ();
25   if (A::i != 17)
26     abort ();
28   return 0;