about summary refs log tree commit diff
path: root/misc/tst-efgcvt.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-12-22 20:09:42 +0000
committerUlrich Drepper <drepper@redhat.com>2004-12-22 20:09:42 +0000
commit7d58530341304d403a6626d7f7a1913165fe2f32 (patch)
tree471ef022d415c89ff4b5544a5e0239a9ac45d841 /misc/tst-efgcvt.c
parentec8c29dc013a5e0ca3330ce5e4ae989e811491e6 (diff)
downloadglibc-7d58530341304d403a6626d7f7a1913165fe2f32.tar.gz
glibc-7d58530341304d403a6626d7f7a1913165fe2f32.tar.xz
glibc-7d58530341304d403a6626d7f7a1913165fe2f32.zip
Test for stack alignment.
Diffstat (limited to 'misc/tst-efgcvt.c')
-rw-r--r--misc/tst-efgcvt.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/misc/tst-efgcvt.c b/misc/tst-efgcvt.c
index 91e5cf929e..30ab0f17a0 100644
--- a/misc/tst-efgcvt.c
+++ b/misc/tst-efgcvt.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1998, 1999, 2000, 2004 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -20,6 +20,7 @@
 # define _GNU_SOURCE	1
 #endif
 
+#include <float.h>
 #include <math.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -59,6 +60,10 @@ static testcase ecvt_tests[] =
   { 123.01, -4, 3, "" },
   { 126.71, -4, 3, "" },
   { 0.0, 4, 1, "0000" },
+#if DBL_MANT_DIG == 53
+  { 0x1p-1074, 3, -323, "494" },
+  { -0x1p-1074, 3, -323, "494" },
+#endif
   /* -1.0 is end marker.  */
   { -1.0, 0, 0, "" }
 };