1f4a2713aSLionel Sambuc // Test that TLS is correctly considered supported or unsupported for the 2f4a2713aSLionel Sambuc // different targets. 3f4a2713aSLionel Sambuc 4f4a2713aSLionel Sambuc // Linux supports TLS. 5f4a2713aSLionel Sambuc // RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -fsyntax-only %s 6f4a2713aSLionel Sambuc // RUN: %clang_cc1 -triple i386-pc-linux-gnu -fsyntax-only %s 7f4a2713aSLionel Sambuc 8f4a2713aSLionel Sambuc // Darwin supports TLS since 10.7. 9f4a2713aSLionel Sambuc // RUN: not %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only %s 10f4a2713aSLionel Sambuc // RUN: %clang_cc1 -triple x86_64-apple-macos10.7.0 -fsyntax-only %s 11f4a2713aSLionel Sambuc 12*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -triple x86_64-pc-win32 -fsyntax-only %s 13*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -triple i386-pc-win32 -fsyntax-only %s 14f4a2713aSLionel Sambuc 15f4a2713aSLionel Sambuc // OpenBSD does not suppport TLS. 16f4a2713aSLionel Sambuc // RUN: not %clang_cc1 -triple x86_64-pc-openbsd -fsyntax-only %s 17f4a2713aSLionel Sambuc // RUN: not %clang_cc1 -triple i386-pc-openbsd -fsyntax-only %s 18f4a2713aSLionel Sambuc 19f4a2713aSLionel Sambuc // Haiku does not suppport TLS. 20f4a2713aSLionel Sambuc // RUN: not %clang_cc1 -triple i586-pc-haiku -fsyntax-only %s 21f4a2713aSLionel Sambuc 22*0a6a1f1dSLionel Sambuc // Bitrig suppports TLS. 23*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -triple x86_64-pc-bitrig -fsyntax-only %s 24*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -triple armv6-unknown-bitrig -fsyntax-only %s 25*0a6a1f1dSLionel Sambuc 26f4a2713aSLionel Sambuc __thread int x; 27