mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-17 12:01:53 +08:00
27 lines
375 B
C
27 lines
375 B
C
|
/*
|
||
|
* self1.c
|
||
|
*
|
||
|
* Test for pthread_self().
|
||
|
*
|
||
|
* Depends on API functions:
|
||
|
* pthread_self()
|
||
|
*
|
||
|
* Implicitly depends on:
|
||
|
* pthread_getspecific()
|
||
|
* pthread_setspecific()
|
||
|
*/
|
||
|
|
||
|
#include "test.h"
|
||
|
|
||
|
int
|
||
|
main(int argc, char * argv[])
|
||
|
{
|
||
|
/*
|
||
|
* This should always succeed unless the system has no
|
||
|
* resources (memory) left.
|
||
|
*/
|
||
|
assert(pthread_self() != NULL);
|
||
|
|
||
|
return 0;
|
||
|
}
|