1/* { dg-do compile { target { ! { ia32 } } } } */ 2/* { dg-options "-O2 -mx32 -maddress-mode=long" } */ 3 4extern void abort (void); 5static __thread unsigned char foo [32] 6__attribute__ ((tls_model ("initial-exec"), aligned (sizeof (void *)))); 7 8void 9test2 (void) 10{ 11 unsigned int s; 12 for (s = 0; s < sizeof (foo); ++s) 13 { 14 if (foo [s] != s) 15 abort (); 16 foo [s] = sizeof (foo) - s; 17 } 18} 19