about summary refs log tree commit diff
path: root/REORG.TODO/stdio-common/bug11.c
diff options
context:
space:
mode:
Diffstat (limited to 'REORG.TODO/stdio-common/bug11.c')
-rw-r--r--REORG.TODO/stdio-common/bug11.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/REORG.TODO/stdio-common/bug11.c b/REORG.TODO/stdio-common/bug11.c
new file mode 100644
index 0000000000..c5af604e44
--- /dev/null
+++ b/REORG.TODO/stdio-common/bug11.c
@@ -0,0 +1,14 @@
+#include <stdio.h>
+#include <string.h>
+
+int
+main (int argc, char *argv[])
+{
+  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;
+}