diff options
Diffstat (limited to 'stdio-common/bug11.c')
-rw-r--r-- | stdio-common/bug11.c | 13 |
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; +} |