diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/tls/pr42894.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/tls/pr42894.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/tls/pr42894.c b/gcc/testsuite/gcc.dg/tls/pr42894.c new file mode 100644 index 000000000..c3bd76c91 --- /dev/null +++ b/gcc/testsuite/gcc.dg/tls/pr42894.c @@ -0,0 +1,12 @@ +/* PR target/42894 */ +/* { dg-do compile } */ +/* { dg-options "-march=armv5te -mthumb" { target arm*-*-* } } */ +/* { dg-require-effective-target tls } */ + +extern __thread int t; + +void +foo (int a) +{ + t = a; +} |