aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/SemaCXX/cxx11-thread-local.cpp1
-rw-r--r--test/lit.cfg4
2 files changed, 5 insertions, 0 deletions
diff --git a/test/SemaCXX/cxx11-thread-local.cpp b/test/SemaCXX/cxx11-thread-local.cpp
index 011c886252..e9b2279705 100644
--- a/test/SemaCXX/cxx11-thread-local.cpp
+++ b/test/SemaCXX/cxx11-thread-local.cpp
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -std=c++11 -verify %s
+// REQUIRES: thread_local_storage
struct S {
static thread_local int a;
diff --git a/test/lit.cfg b/test/lit.cfg
index 6b0ad59c9f..8584f79c62 100644
--- a/test/lit.cfg
+++ b/test/lit.cfg
@@ -305,3 +305,7 @@ if config.llvm_use_sanitizer == "Address":
if (config.llvm_use_sanitizer == "Memory" or
config.llvm_use_sanitizer == "MemoryWithOrigins"):
config.available_features.add("msan")
+
+# Thread local storage
+if not 'darwin10' in config.target_triple:
+ config.available_features.add("thread_local_storage")