summaryrefslogtreecommitdiff
path: root/stdio-common/bug16.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2006-08-07 19:28:26 +0000
committerJakub Jelinek <jakub@redhat.com>2006-08-07 19:28:26 +0000
commit503d6a958581777473c31f73113d0fa6cff19b30 (patch)
treec8526f0403ac272cba94213a3c5b10a369876d78 /stdio-common/bug16.c
parent98d2266156a49df5f93726c8f0b148bbdee41c9d (diff)
Updated to fedora-glibc-20060807T1859cvs/fedora-glibc-2_4_90-18
Diffstat (limited to 'stdio-common/bug16.c')
-rw-r--r--stdio-common/bug16.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/stdio-common/bug16.c b/stdio-common/bug16.c
new file mode 100644
index 0000000000..42e37fa8b6
--- /dev/null
+++ b/stdio-common/bug16.c
@@ -0,0 +1,20 @@
+#include <stdio.h>
+#include <string.h>
+
+static int
+do_test (void)
+{
+ char buf[100];
+ snprintf (buf, sizeof (buf), "%.0LA", 0x0.FFFFp+0L);
+
+ if (strcmp (buf, "0X1P+0") != 0)
+ {
+ printf ("got \"%s\", expected \"0X1P+0\"\n", buf);
+ return 1;
+ }
+
+ return 0;
+}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"