summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tls/pr42894.c
blob: c3bd76c91c46229252d931910532469a8cb09f25 (plain)
1
2
3
4
5
6
7
8
9
10
11
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;
}