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" } */ }