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
Fix broken MinGW build of gcc.c
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
tls
/
thread_local-wrap1.C
blob
813a6727b08bfed37e75958678324fcc499574c8
1
// If we can see the definition at the use site, we don't need to bother
2
// with a wrapper.
3
4
// { dg-do compile { target c++11 } }
5
// { dg-require-effective-target tls }
6
// { dg-final { scan-assembler-not "_ZTW1i" } }
7
8
thread_local int i = 42;
9
10
int main()
11
{
12
return i - 42;
13
}