| 1 |
// { dg-do compile { target c++11 } } |
| 2 |
// { dg-require-effective-target tls } |
| 3 |
|
| 4 |
// The reference temp should be TLS, not normal data. |
| 5 |
// { dg-final { scan-assembler-not "\\.data" { target tls_native xfail powerpc-*-aix* } } } |
| 6 |
|
| 7 |
void f() |
| 8 |
{ |
| 9 |
thread_local int&& ir = 42; |
| 10 |
} |