aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/cxx11-thread-unsupported.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/cxx11-thread-unsupported.cpp')
-rw-r--r--test/SemaCXX/cxx11-thread-unsupported.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/SemaCXX/cxx11-thread-unsupported.cpp b/test/SemaCXX/cxx11-thread-unsupported.cpp
new file mode 100644
index 000000000000..d3fcf82ef415
--- /dev/null
+++ b/test/SemaCXX/cxx11-thread-unsupported.cpp
@@ -0,0 +1,5 @@
+// RUN: %clang_cc1 -std=c++11 -triple=x86_64-apple-macosx10.6 -verify %s
+
+void f() {
+ thread_local int x; // expected-error {{thread-local storage is not supported for the current target}}
+}