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
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
pr82725.C
blob
14cb6d897c95b0fed2d28e92e1834019150c9dac
1
// { dg-do compile { target { { i?86-*-* x86_64-*-* } && c++11 } } }
2
// { dg-require-effective-target pie }
3
// { dg-options "-O2 -fpie -mtls-direct-seg-refs" }
4
5
struct string
6
{
7
__SIZE_TYPE__ length;
8
const char *ptr;
9
};
10
11
string
12
tempDir ()
13
{
14
thread_local string cache;
15
return cache;
16
}