aboutsummaryrefslogtreecommitdiff
path: root/stdio-common/bug10.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common/bug10.c')
-rw-r--r--stdio-common/bug10.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/stdio-common/bug10.c b/stdio-common/bug10.c
deleted file mode 100644
index c4f328d4cb..0000000000
--- a/stdio-common/bug10.c
+++ /dev/null
@@ -1,25 +0,0 @@
-#include <stdio.h>
-
-int
-main (int arc, char *argv[])
-{
- int n, res;
- unsigned int val;
- char s[] = "111";
- int result = 0;
-
- n = 0;
- res = sscanf(s, "%u %n", &val, &n);
-
- printf("Result of sscanf = %d\n", res);
- printf("Scanned format %%u = %u\n", val);
- printf("Possibly scanned format %%n = %d\n", n);
- result |= res != 1 || val != 111 || n != 3;
-
-
- result |= sscanf ("", " %n", &n) == EOF;
-
- puts (result ? "Test failed" : "All tests passed");
-
- return result;
-}