From 27dae84ed92f1ef0300263091972338d12e78348 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sat, 18 Oct 2025 19:06:52 +0200 Subject: New upstream version 1.4.1 --- tests/test-reallocarray.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'tests/test-reallocarray.c') diff --git a/tests/test-reallocarray.c b/tests/test-reallocarray.c index 2748b982..5b96bca7 100644 --- a/tests/test-reallocarray.c +++ b/tests/test-reallocarray.c @@ -1,5 +1,5 @@ /* Test of reallocarray function. - Copyright (C) 2010-2024 Free Software Foundation, Inc. + Copyright (C) 2010-2025 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -27,6 +27,12 @@ SIGNATURE_CHECK (reallocarray, void *, (void *, size_t, size_t)); #include "macros.h" +/* Work around clang bug + . */ +void *(*volatile my_reallocarray) (void *, size_t, size_t) = reallocarray; +#undef reallocarray +#define reallocarray my_reallocarray + int main () { @@ -34,7 +40,7 @@ main () of memory larger than PTRDIFF_MAX or SIZE_MAX bytes. */ for (size_t n = 2; n != 0; n <<= 1) { - void *volatile p = NULL; + void *p = NULL; if (PTRDIFF_MAX / n + 1 <= SIZE_MAX) { -- cgit v1.2.3