1/* This test is here to check that PTHREAD_RWLOCK_INITIALIZER is correctly 2 * Defined. It will fail to compile otherwise. 3 * 4 * It also checks that pthread_rwlock_t functions are properly exposed 5 * by the C library. It will fail to link otherwise. 6 */ 7#include <pthread.h> 8 9pthread_rwlock_t theLock = PTHREAD_RWLOCK_INITIALIZER; 10 11void build_check(void) 12{ 13 pthread_rwlock_t lock; 14 pthread_rwlock_init(&lock, NULL); 15 pthread_rwlock_rdlock(&lock); 16 pthread_rwlock_unlock(&lock); 17 pthread_rwlock_destroy(&lock); 18}