Add {symbol,call}_summary::get method and use it in HSA.
[official-gcc.git] / gcc / testsuite / g++.dg / tls / pr69000.C
blob74cdd4b5eb1db6622e996e5efb61a71170a0fbbb
1 // PR c++/69000
2 // { dg-do compile }
3 // { dg-require-effective-target tls }
5 class A {};
7 template <typename T>
8 struct B
10   static int *& foo () { static __thread int *c = 0; return c; }
13 B<A> d;
15 void
16 bar ()
18   d.foo ();