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