stdlib: Add testcases for abs(). (BZ #30263)
authorJoe Simmons-Talbott <josimmon@redhat.com>
Tue, 4 Apr 2023 13:57:45 +0000 (09:57 -0400)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Tue, 16 May 2023 18:38:07 +0000 (14:38 -0400)
commit0d21b3783f49ae94207a1bb9acd5dc8b071f0b13
treeaee76e59952c6bd247aa869acce4cbd85951534f
parent114f1b7881e63e2b4e5d0e9a9e4fb142b9cd886c
stdlib: Add testcases for abs(). (BZ #30263)

Test minimum and maximum int values, zero, and part of the range
of int values.  Use '-fno-builtin' to ensure we are testing the
implementation.

Reviewed-by: Wilco Dijkstra <Wilco.Dijkstra@arm.com>
stdlib/Makefile
stdlib/tst-abs.c [new file with mode: 0644]