aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/pr56847.c
blob: b94aae1d89cf24716fc2cb7b14ba428a72a2e2c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* PR rtl-optimization/56847 */
/* { dg-do compile { target pie } } */
/* { dg-options "-O2 -fpie" } */

struct S { long int a, b; } e;
__thread struct S s;

void
foo (void)
{
  s = e;
}