diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-01-11 23:58:28 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-01-11 23:58:28 +0000 |
commit | 0f805bf3a450f2baf6a82b38b81bf08cf3897aa5 (patch) | |
tree | 94c2ea740de6bee68581b4970657a16380ac01c8 /gcc/testsuite/gcc.dg/tls | |
parent | c2dc8ebfa4f43c48c9bf2f1fea32fff76d03eb32 (diff) | |
download | gcc-0f805bf3a450f2baf6a82b38b81bf08cf3897aa5.tar.gz |
New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75696 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/tls')
-rw-r--r-- | gcc/testsuite/gcc.dg/tls/alpha-1.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/tls/alpha-1.c b/gcc/testsuite/gcc.dg/tls/alpha-1.c new file mode 100644 index 00000000000..4bb911f74a1 --- /dev/null +++ b/gcc/testsuite/gcc.dg/tls/alpha-1.c @@ -0,0 +1,9 @@ +/* Make sure that we honor initial-exec. */ +/* { dg-do compile { target alpha*-*-* } } */ +/* { dg-options "" } */ + +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)" } } */ |