| 1 |
// If we can see the definition at the use site, we don't need to bother |
| 2 |
// with a wrapper. |
| 3 |
|
| 4 |
// { dg-require-effective-target tls } |
| 5 |
// { dg-final { scan-assembler-not "_ZTW1i" } } |
| 6 |
|
| 7 |
int i = 42; |
| 8 |
#pragma omp threadprivate (i) |
| 9 |
|
| 10 |
int main() |
| 11 |
{ |
| 12 |
return i - 42; |
| 13 |
} |