1  /* { dg-do compile } */
       2  /* { dg-require-effective-target tls_native } */
       3  /* { dg-require-effective-target fpic } */
       4  /* { dg-options "-fPIC -mno-accumulate-outgoing-args -mpreferred-stack-boundary=5 -mincoming-stack-boundary=4" } */
       5  
       6  extern __thread int msgdata;
       7  int
       8  foo ()
       9  {
      10    return msgdata;
      11  }