]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/tls/opt-8.c
Revert emutls patch.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tls / opt-8.c
1 /* PR 18910 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2" } */
4 /* { dg-require-effective-target tls } */
5
6 static __thread void *foo [2];
7 void
8 test1 (void)
9 {
10 unsigned int s;
11
12 for (s = 0; s < 2; ++s)
13 foo [s] = &foo[s];
14 }