| 1 |
// { dg-final { scan-assembler-not "_ZTHN1A1iE" } } |
| 2 |
// { dg-final { scan-assembler-not "_ZTWN1A1iE" } } |
| 3 |
// { dg-require-effective-target tls } |
| 4 |
|
| 5 |
struct A |
| 6 |
{ |
| 7 |
static __thread int i; |
| 8 |
}; |
| 9 |
|
| 10 |
int |
| 11 |
test () |
| 12 |
{ |
| 13 |
if (A::i != 8) |
| 14 |
return 1; |
| 15 |
|
| 16 |
A::i = 17; |
| 17 |
return 0; |
| 18 |
} |