Projet_SETI_RISC-V/riscv-gnu-toolchain/newlib/winsup/testsuite/winsup.api/pthread/self1.c
2023-03-06 14:48:14 +01:00

26 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;
}