From d877b52d58b1c73810751bdb48987b84bda87d5e Mon Sep 17 00:00:00 2001 From: Joe Simmons-Talbott Date: Tue, 4 Apr 2023 09:57:47 -0400 Subject: stdlib: Add testcases for llabs(). (BZ #30263) Test minimum and maximum long long values, zero, 32bit crossover points, and part of the range of long long values. Use '-fno-builtin' to ensure we are testing the implementation. Reviewed-by: Wilco Dijkstra --- stdlib/Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'stdlib/Makefile') diff --git a/stdlib/Makefile b/stdlib/Makefile index 0f58a6b62d..0975f55ee6 100644 --- a/stdlib/Makefile +++ b/stdlib/Makefile @@ -200,6 +200,7 @@ tests := \ tst-getrandom \ tst-labs \ tst-limits \ + tst-llabs \ tst-makecontext \ tst-makecontext-align \ tst-makecontext2 \ @@ -291,6 +292,7 @@ LDLIBS-test-dlclose-exit-race-helper.so = $(libsupport) $(shared-thread-library) CFLAGS-tst-abs.c += -fno-builtin CFLAGS-tst-labs.c += -fno-builtin +CFLAGS-tst-llabs.c += -fno-builtin ifeq ($(have-cxx-thread_local),yes) CFLAGS-tst-quick_exit.o = -std=c++11 -- cgit v1.2.3