summaryrefslogtreecommitdiff
path: root/tests/test-year2038.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-year2038.c')
-rw-r--r--tests/test-year2038.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/test-year2038.c b/tests/test-year2038.c
index 58c1058b13..0facf930ed 100644
--- a/tests/test-year2038.c
+++ b/tests/test-year2038.c
@@ -26,14 +26,13 @@
#include <config.h>
#include <sys/types.h>
+#include "intprops.h"
+
+/* Check the range of time_t. */
+static_assert (TYPE_MAXIMUM (time_t) >> 31 != 0);
int
main (void)
{
- /* Check the size and sign of time_t. */
- if (sizeof (time_t) <= 4 && (time_t)-1 < 0)
- /* time_t is only 32 bits wide and signed. */
- return 1;
-
return 0;
}