static __typeof (pvalloc) * volatile pvalloc_indirect = pvalloc;
static __typeof (realloc) * volatile realloc_indirect = realloc;
static __typeof (valloc) * volatile valloc_indirect = valloc;
+static __typeof (reallocarray) * volatile reallocarray_indirect = reallocarray;
#undef aligned_alloc
#undef calloc
#undef pvalloc
#undef realloc
#undef valloc
+#undef reallocarray
#define aligned_alloc aligned_alloc_indirect
#define calloc calloc_indirect
#define pvalloc pvalloc_indirect
#define realloc realloc_indirect
#define valloc valloc_indirect
+#define reallocarray reallocarray_indirect
#endif /* TST_MALLOC_AUX_H */
#include <libc-pointer-arith.h>
#include <support/check.h>
+#include "tst-malloc-aux.h"
+
typedef struct TestCase {
size_t size;
size_t alignment;
#include <support/check.h>
#include <support/xthread.h>
+#include "tst-malloc-aux.h"
typedef struct TestCase {
size_t size;
#include <support/check.h>
#include <libc-diag.h>
+#include "tst-malloc-aux.h"
+
static void *
reallocarray_nowarn (void *ptr, size_t nmemb, size_t size)
{