summaryrefslogtreecommitdiff
path: root/tests/self1.c
blob: 0addfc8238ce76f4f6df70e63cd739aefd5dcc31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * Test for pthread_self().
 *
 * Depends on API functions: None.
 */

#include <pthread.h>

int
main(int argc, char * argv[])
{
	pthread_t id;

	/* We can't do anything with this, though, because it is not
	   safe to assume anything about the internal structure of
	   a `pthread_t'. */

	id = pthread_self();

	return 0;
}