Ticket #1646: tls-test2.cpp
File tls-test2.cpp, 294 bytes (added by , 17 years ago) |
---|
Line | |
---|---|
1 | #include <stdio.h> |
2 | |
3 | #include <TLS.h> |
4 | |
5 | |
6 | int |
7 | main() |
8 | { |
9 | void* void_pt = NULL; |
10 | for (int32 index = 0; index < 70; index++) { |
11 | if (void_pt == tls_get(index)) |
12 | printf("key is %d, tls_get returns null\n", index); |
13 | else |
14 | printf("key is %d, tls_get doesn't return null\n", index); |
15 | } |
16 | return 0; |
17 | } |