1 /* PR rtl-optimization/56847 */ 2 /* { dg-do compile { target pie } } */ 3 /* { dg-options "-O2 -fpie" } */ 4 5 struct S { long int a, b; } e; 6 __thread struct S s; 7 8 void foo(void)9 foo (void) 10 { 11 s = e; 12 } 13