2012-08-02 02:53:19 +08:00
|
|
|
// Test that TLS is correctly considered supported or unsupported for the
|
|
|
|
// different targets.
|
|
|
|
|
|
|
|
// Linux supports TLS.
|
2012-08-02 17:04:56 +08:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -fsyntax-only %s
|
|
|
|
// RUN: %clang_cc1 -triple i386-pc-linux-gnu -fsyntax-only %s
|
2012-08-02 02:53:19 +08:00
|
|
|
|
|
|
|
// Darwin supports TLS since 10.7.
|
2012-08-02 17:04:56 +08:00
|
|
|
// RUN: not %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only %s
|
|
|
|
// RUN: %clang_cc1 -triple x86_64-apple-macos10.7.0 -fsyntax-only %s
|
2012-08-02 02:53:19 +08:00
|
|
|
|
2014-04-29 08:11:30 +08:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-pc-win32 -fsyntax-only %s
|
|
|
|
// RUN: %clang_cc1 -triple i386-pc-win32 -fsyntax-only %s
|
2012-08-02 02:53:19 +08:00
|
|
|
|
|
|
|
// OpenBSD does not suppport TLS.
|
2012-08-02 17:04:56 +08:00
|
|
|
// RUN: not %clang_cc1 -triple x86_64-pc-openbsd -fsyntax-only %s
|
|
|
|
// RUN: not %clang_cc1 -triple i386-pc-openbsd -fsyntax-only %s
|
2012-08-02 02:53:19 +08:00
|
|
|
|
2012-11-08 20:59:15 +08:00
|
|
|
// Haiku does not suppport TLS.
|
|
|
|
// RUN: not %clang_cc1 -triple i586-pc-haiku -fsyntax-only %s
|
|
|
|
|
2014-05-02 07:19:06 +08:00
|
|
|
// Bitrig suppports TLS.
|
|
|
|
// RUN: %clang_cc1 -triple x86_64-pc-bitrig -fsyntax-only %s
|
|
|
|
// RUN: %clang_cc1 -triple armv6-unknown-bitrig -fsyntax-only %s
|
|
|
|
|
2012-08-02 17:04:56 +08:00
|
|
|
__thread int x;
|