diff options
Diffstat (limited to 'test/SemaCXX/cxx11-thread-unsupported.cpp')
-rw-r--r-- | test/SemaCXX/cxx11-thread-unsupported.cpp | 5 |
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 0000000..d3fcf82 --- /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}} +} |