diff options
| author | Tim Northover <tnorthover@apple.com> | 2016-01-07 09:04:46 +0000 |
|---|---|---|
| committer | Tim Northover <tnorthover@apple.com> | 2016-01-07 09:04:46 +0000 |
| commit | a12d0a99b1211eedebb365d2c4ea6ba0ccd2c212 (patch) | |
| tree | 7c861219d2002c4de9419b517134b5d8433ded98 /clang/test/Sema/darwin-tls.c | |
| parent | 3f07d858261c9864ce57e7c413796bed940d4d77 (diff) | |
| download | bcm5719-llvm-a12d0a99b1211eedebb365d2c4ea6ba0ccd2c212.tar.gz bcm5719-llvm-a12d0a99b1211eedebb365d2c4ea6ba0ccd2c212.zip | |
ARM: allow __thread on OS versions that have the required runtime support.
llvm-svn: 257041
Diffstat (limited to 'clang/test/Sema/darwin-tls.c')
| -rw-r--r-- | clang/test/Sema/darwin-tls.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/clang/test/Sema/darwin-tls.c b/clang/test/Sema/darwin-tls.c new file mode 100644 index 00000000000..0fcf096d92b --- /dev/null +++ b/clang/test/Sema/darwin-tls.c @@ -0,0 +1,17 @@ +// RUN: not %clang_cc1 -fsyntax-only -triple x86_64-apple-macosx10.6 %s 2>&1 | FileCheck %s --check-prefix NO-TLS +// RUN: %clang_cc1 -fsyntax-only -triple x86_64-apple-macosx10.7 %s 2>&1 | FileCheck %s --check-prefix TLS +// RUN: not %clang_cc1 -fsyntax-only -triple arm64-apple-ios7.1 %s 2>&1 | FileCheck %s --check-prefix NO-TLS +// RUN: %clang_cc1 -fsyntax-only -triple arm64-apple-ios8.0 %s 2>&1 | FileCheck %s --check-prefix TLS +// RUN: not %clang_cc1 -fsyntax-only -triple thumbv7s-apple-ios8.3 %s 2>&1 | FileCheck %s --check-prefix NO-TLS +// RUN: %clang_cc1 -fsyntax-only -triple thumbv7s-apple-ios9.0 %s 2>&1 | FileCheck %s --check-prefix TLS +// RUN: %clang_cc1 -fsyntax-only -triple armv7-apple-ios9.0 %s 2>&1 | FileCheck %s --check-prefix TLS +// RUN: not %clang_cc1 -fsyntax-only -triple thumbv7k-apple-watchos1.0 %s 2>&1 | FileCheck %s --check-prefix NO-TLS +// RUN: %clang_cc1 -fsyntax-only -triple thumbv7k-apple-watchos2.0 %s 2>&1 | FileCheck %s --check-prefix TLS + + +__thread int a; + +// NO-TLS: thread-local storage is not supported for the current target +// TLS-NOT: thread-local storage is not supported for the current target + +wibble; |

