1 /* { dg-lto-do link } */
2 /* { dg-skip-if "" { ! { i?86-*-linux* i?86-*-gnu* x86_64-*-linux* } } } */
3 /* { dg-require-effective-target fpic } */
4 /* { dg-lto-options {{-flto -flto-partition=1to1 -fPIC}} } */
5 /* { dg-suppress-ld-options {-fPIC} } */
8 static int __thread v
= 0;
10 for (i
= 0; i
< n
; ++i
) {
12 volatile int x
__attribute__ ((unused
)) = *p
;
16 int main(int argc
, char **argv
) {