summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tls/asm-1.c
blob: b77e550d7bf7f29976b3f5e8d6242182379a1170 (plain)
1
2
3
4
5
6
7
8
/* { dg-options "-Werror" } */
/* { dg-require-effective-target tls } */
__thread int i;

int foo ()
{
  asm volatile ("" :: "m" (&i));  /* { dg-error "directly addressable" } */
}