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 tempDir()12tempDir () 13 { 14 thread_local string cache; 15 return cache; 16 } 17