1 2 3 4 5 6 7
/* { dg-options "-Werror" } */ __thread int i; int foo () { asm volatile ("" :: "m" (&i)); /* { dg-error "directly addressable" } */ }