Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Sema / tls.c
blob600a69566a7ebedf517892fba3a901c570d6ba00
1 // Test that TLS is correctly considered supported or unsupported for the
2 // different targets.
4 // Linux supports TLS.
5 // RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -fsyntax-only %s
6 // RUN: %clang_cc1 -triple i386-pc-linux-gnu -fsyntax-only %s
8 // Darwin supports TLS since 10.7.
9 // RUN: not %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only %s
10 // RUN: %clang_cc1 -triple x86_64-apple-macos10.7.0 -fsyntax-only %s
12 // RUN: %clang_cc1 -triple x86_64-pc-win32 -fsyntax-only %s
13 // RUN: %clang_cc1 -triple i386-pc-win32 -fsyntax-only %s
15 // OpenBSD supports TLS.
16 // RUN: %clang_cc1 -triple x86_64-pc-openbsd -fsyntax-only %s
17 // RUN: %clang_cc1 -triple i386-pc-openbsd -fsyntax-only %s
19 // Haiku supports TLS.
20 // RUN: %clang_cc1 -triple x86_64-unknown-haiku -fsyntax-only %s
21 // RUN: %clang_cc1 -triple i586-pc-haiku -fsyntax-only %s
23 __thread int x;