#include <array_length.h>
#include <stdlib.h>
+#if __GNUC_PREREQ (5, 0)
#include <string.h>
#include <stringtable.h>
#include <support/check.h>
#define _(arg) arg
#include "stringtable.c"
#include "stringtable_free.c"
+#else
+#include <support/test-driver.h>
+
+int
+main (void)
+{
+ return EXIT_UNSUPPORTED;
+}
+#endif
#include <inttypes.h>
#include <support/support.h>
#include <support/temp_file.h>
+#include <support/test-driver.h>
#include <stdio.h>
static int temp_fd = -1;
for (int i = 0; i < array_length (tests); i++)
{
/* Check if we run on port with 32 bit time_t size. */
+#if __GNUC_PREREQ (5, 0)
time_t t;
if (__builtin_add_overflow (tests[i].v1, 0, &t)
|| __builtin_add_overflow (tests[i].v2, 0, &t))
"time_t overflows\n", i, tests[i].v1, tests[i].v2);
continue;
}
+#else
+ return EXIT_UNSUPPORTED;
+#endif
if (tests[i].v1 >= 0x100000000LL && !y2106)
{
#include <sys/mman.h>
#include <unistd.h>
+#if __GNUC_PREREQ (5, 0)
/* Called by large_buffer_checks below. */
static void
large_buffer_check (int fd, char *large_buffer, size_t large_buffer_size)
xclose (fd);
}
+#else
+static void
+do_test_large_size (void)
+{
+}
+#endif
static void
do_test_by_size (size_t buffer_size)
#include <stdlib.h>
#include <support/check.h>
+#if __GNUC_PREREQ (5, 0)
static int
do_test (void)
{
}
#include <support/test-driver.c>
+#else
+#include <support/test-driver.h>
+
+int
+main (void)
+{
+ return EXIT_UNSUPPORTED;
+}
+#endif
#include <time.h>
#include <support/check.h>
+#if __GNUC_PREREQ (5, 0)
static void
test_difftime_helper (time_t t1, time_t t0, double exp_val)
{
}
#include <support/test-driver.c>
+#else
+#include <support/test-driver.h>
+
+int
+main ()
+{
+ return EXIT_UNSUPPORTED;
+}
+#endif
#include <stdlib.h>
#include <support/check.h>
+#if __GNUC_PREREQ (5, 0)
const struct tm tm0 =
{
.tm_year = 70,
}
#include <support/test-driver.c>
+#else
+#include <support/test-driver.h>
+
+int
+main (void)
+{
+ return EXIT_UNSUPPORTED;
+}
+#endif