Daily bump.
[official-gcc.git] / gcc / testsuite / g++.dg / tls / pr79288.C
blobc41629d9d25ec589625b322326c32ffa99d83648
1 // PR c++/79288
2 // { dg-do compile { target { nonpic || pie_enabled } } }
3 // { dg-require-effective-target tls }
4 // { dg-options "-O2" }
5 // { dg-skip-if "VxWorks kernel tls model is local-exec" { vxworks_kernel } }
6 // { dg-final { scan-assembler-not "@tpoff" { target i?86-*-* x86_64-*-* } } }
8 struct S
10   static __thread int *p;
13 template <int N>
14 struct T
16   static __thread int *p;
19 int *
20 foo ()
22   return S::p;
25 int *
26 bar ()
28   return T<0>::p;