summaryrefslogtreecommitdiff
path: root/stdio-common/bug11.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-12-23 01:14:10 +0000
committerRoland McGrath <roland@gnu.org>1995-12-23 01:14:10 +0000
commit2114e10acb7494eddd5417c27cd52199f4fe9517 (patch)
tree30543b37265562f35608e99bb7c4a312c19c919c /stdio-common/bug11.c
parent975320984b9f9fa6742136447ec82e7e304d83fd (diff)
Fri Dec 22 00:38:00 1995 H.J. Lu <hjl@nynexst.com>
* stdio-common/vfscanf.c: Correctly handle white space skipping. * stdio-common/Makefile (tests): Add bug11. * stdio-common/bug11.c: New file. Fri Dec 22 00:38:00 1995 H.J. Lu <hjl@nynexst.com> * stdio-common/vfscanf.c: Correctly handle white space skipping. * stdio-common/Makefile (tests): Add bug11. * stdio-common/bug11.c: New file.
Diffstat (limited to 'stdio-common/bug11.c')
-rw-r--r--stdio-common/bug11.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/stdio-common/bug11.c b/stdio-common/bug11.c
new file mode 100644
index 0000000000..1f5739cb7d
--- /dev/null
+++ b/stdio-common/bug11.c
@@ -0,0 +1,13 @@
+#include <stdio.h>
+#include <string.h>
+
+main ()
+{
+ int ret;
+ char buf [1024] = "Ooops";
+
+ ret = sscanf ("static char Term_bits[] = {", "static char %s = {", buf);
+ printf ("ret: %d, name: %s\n", ret, buf);
+
+ return strcmp (buf, "Term_bits[]") != 0 || ret != 1;
+}