Ticket #1646: tls-test2.cpp

File tls-test2.cpp, 294 bytes (added by kaoutsis, 17 years ago)

the range of key values are from 0 to 69 to this test

Line 
1#include <stdio.h>
2
3#include <TLS.h>
4
5
6int
7main()
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}