#include #include void *thread( void *x ) { return 1; } int main() { pthread_t tid; pthread_create( &tid, NULL, thread, NULL ); void *i = 0; int rv = pthread_join( tid, &i ); assert( rv == 0 ); assert( i == 1 ); return 0; }