Files
clang-p2996/lld/test/elf/Inputs/tls.c
Michael J. Spencer b0ed8e80d8 [ELF][x86-84] Add static TLS support.
llvm-svn: 174154
2013-02-01 07:13:49 +00:00

12 lines
193 B
C

extern __thread int tls0;
extern __thread int tls1;
extern __thread int tls2;
__thread int tls0 = 0;
__thread int tls1 = 0;
__thread int tls2 = 1;
int main() {
return tls0 + tls1 + tls2;
}