blob: cb2dac4a4c8b8f8db731a2cb9745846e95faac2f [file] [log] [blame]
/* PR 21412 */
/* { dg-do compile */
/* { dg-options "-O2 -fPIC" } */
/* { dg-error "" "unrecognizable insn" { target sparc*-*-* } 0 } */
struct S { int x[10]; };
extern __thread struct S s;
int *foo() { return &s.x[2]; }