Ticket #1646: tls-test.cpp

File tls-test.cpp, 203 bytes (added by kaoutsis, 16 years ago)

a test to see what tls_get() returns for an unknown key on beos

Line 
1#include <stdio.h>
2
3#include <TLS.h>
4
5
6int
7main()
8{
9 void* void_pt = NULL;
10 if (void_pt == tls_get(23))
11 printf("tls_get returns null\n");
12 else
13 printf("tls_get doesn't return null\n");
14
15 return 0;
16}