From: Richard Henderson Date: Wed, 19 Oct 2005 09:01:09 +0000 (-0700) Subject: New test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9c5923aea764c5220e5ebdfad370ddfd71d2e4ab;p=gcc.git New test. From-SVN: r105600 --- diff --git a/gcc/testsuite/gcc.dg/tls/pr24428-2.c b/gcc/testsuite/gcc.dg/tls/pr24428-2.c new file mode 100644 index 00000000000..828943c60e5 --- /dev/null +++ b/gcc/testsuite/gcc.dg/tls/pr24428-2.c @@ -0,0 +1,12 @@ +/* { dg-do run } */ +/* { dg-options "-O2" } */ + +__thread double thrtest[81]; +int main () +{ + double *p, *e; + e = &thrtest[81]; + for (p = &thrtest[0]; p < e; ++p) + *p = 1.0; + return 0; +}