repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
tls
/
pr69000.C
blob
74cdd4b5eb1db6622e996e5efb61a71170a0fbbb
1
// PR c++/69000
2
// { dg-do compile }
3
// { dg-require-effective-target tls }
4
5
class A {};
6
7
template <typename T>
8
struct B
9
{
10
static int *& foo () { static __thread int *c = 0; return c; }
11
};
12
13
B<A> d;
14
15
void
16
bar ()
17
{
18
d.foo ();
19
}