[ARM] Only test tls-disable-literal-pool.c if target supports native TLS
[official-gcc.git] / gcc / testsuite / gcc.target / arm / tls-disable-literal-pool.c
blob283201fdd97aac2fcd302665b519a27615558364
1 /* { dg-do compile } */
2 /* { dg-require-effective-target tls_native } */
3 /* { dg-require-effective-target arm_cortex_m } */
4 /* { dg-require-effective-target arm_thumb2_ok } */
5 /* { dg-options "-mslow-flash-data" } */
7 __thread int x = 0;
9 int
10 bar ()
12 return x; /* { dg-message "sorry, unimplemented: accessing thread-local storage is not currently supported with -mpure-code or -mslow-flash-data" } */