summaryrefslogtreecommitdiff
path: root/stdio-common/bug16.c
diff options
context:
space:
mode:
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"