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
Partial implementation of C++11 thread_local.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
tls
/
thread_local7.C
blob
77a1c05e44c5a406979066768c9aa1534b8d2052
1
// { dg-options "-std=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" } }
6
7
void f()
8
{
9
thread_local int&& ir = 42;
10
}