diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/tls/pr24428.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/tls/pr24428.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/tls/pr24428.c b/gcc/testsuite/gcc.dg/tls/pr24428.c new file mode 100644 index 000000000..643969877 --- /dev/null +++ b/gcc/testsuite/gcc.dg/tls/pr24428.c @@ -0,0 +1,13 @@ +/* { dg-do run } */ +/* { dg-options "-O2" } */ +/* { dg-require-effective-target tls_runtime } */ +/* { dg-add-options tls } */ + +__thread double thrtest[81]; +int main () +{ + int i; + for (i = 0; i < 81; i++) + thrtest[i] = 1.0; + return 0; +} |