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

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