summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tls/alpha-1.c
blob: 1f0d6eda1d884fa4420cb1386a5cbe81e68ea5fe (plain)
1
2
3
4
5
6
7
8
9
10
/* Make sure that we honor initial-exec.  */
/* { dg-do compile { target alpha*-*-* } } */
/* { dg-options "" } */
/* { dg-require-effective-target tls_native } */

static __thread int xyzzy __attribute__ ((tls_model ("initial-exec")));
int foo(void) { return xyzzy; }

/* { dg-final { scan-assembler "gottprel" } } */
/* { dg-final { scan-assembler-not "tprel(lo|hi|16)" } } */