11 lines · c
1// RUN: %clang_cc1 -triple arm-none-eabi -fsyntax-only -verify=default %s2// RUN: %clang_cc1 -triple arm-none-eabi -target-feature +execute-only -fsyntax-only -verify=execute-only %s3 4// default-no-diagnostics5 6/// Thread-local code generation requires constant pools because most of the7/// relocations needed for it operate on data, so it cannot be used with8/// -mexecute-only (or -mpure-code, which is aliased in the driver).9 10_Thread_local int t; // execute-only-error {{thread-local storage is not supported for the current target}}11