libbuild2-autoconf/libbuild2-autoconf-tests/checks/sizeof/driver.c

26 lines
336 B
C
Raw Normal View History

/* Test more tricky SIZEOF_* checks.
*/
#include "config.h"
#include <sys/types.h> /* off_t */
#ifdef TEST_PTHREAD
# include <pthread.h>
#endif
#undef NDEBUG
#include <assert.h>
int
main ()
{
assert (SIZEOF_OFF_T == sizeof (off_t));
#ifdef TEST_PTHREAD
assert (SIZEOF_PTHREAD_T == sizeof (pthread_t));
#endif
2022-09-07 09:21:16 +00:00
return 0;
}