From a334319f6530564d22e775935d9c91663623a1b4 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 22 Dec 2004 20:10:10 +0000 Subject: (CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4. --- stdlib/tst-strtod3.c | 55 ---------------------------------------------------- 1 file changed, 55 deletions(-) delete mode 100644 stdlib/tst-strtod3.c (limited to 'stdlib/tst-strtod3.c') diff --git a/stdlib/tst-strtod3.c b/stdlib/tst-strtod3.c deleted file mode 100644 index 23abec1896..0000000000 --- a/stdlib/tst-strtod3.c +++ /dev/null @@ -1,55 +0,0 @@ -#include -#include -#include -#include - -static const struct -{ - const char *in; - const char *out; - double expected; -} tests[] = - { - { "000,,,e1", ",,,e1", 0.0 }, - { "000e1", "", 0.0 }, - { "000,1e1", ",1e1", 0.0 } - }; -#define NTESTS (sizeof (tests) / sizeof (tests[0])) - - -static int -do_test (void) -{ - if (setlocale (LC_ALL, "en_US.ISO-8859-1") == NULL) - { - puts ("could not set locale"); - return 1; - } - - int status = 0; - - for (int i = 0; i < NTESTS; ++i) - { - char *ep; - double r = __strtod_internal (tests[i].in, &ep, 1); - - if (strcmp (ep, tests[i].out) != 0) - { - printf ("%d: got rest string \"%s\", expected \"%s\"\n", - i, ep, tests[i].out); - status = 1; - } - - if (r != tests[i].expected) - { - printf ("%d: got wrong results %g, expected %g\n", - i, r, tests[i].expected); - status = 1; - } - } - - return status; -} - -#define TEST_FUNCTION do_test () -#include "../test-skeleton.c" -- cgit v1.2.3-70-g09d2