aboutsummaryrefslogtreecommitdiff
path: root/stdio/bug1.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdio/bug1.c')
-rw-r--r--stdio/bug1.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/stdio/bug1.c b/stdio/bug1.c
deleted file mode 100644
index 755bc4231b..0000000000
--- a/stdio/bug1.c
+++ /dev/null
@@ -1,28 +0,0 @@
-#include <ansidecl.h>
-#include <stdio.h>
-#include <string.h>
-
-int
-DEFUN_VOID(main)
-{
- char *bp;
- size_t size;
- FILE *stream;
- int lose = 0;
-
- stream = open_memstream (&bp, &size);
- fprintf (stream, "hello");
- fflush (stream);
- printf ("buf = %s, size = %d\n", bp, size);
- lose |= size != 5;
- lose |= strncmp (bp, "hello", size);
- fprintf (stream, ", world");
- fclose (stream);
- printf ("buf = %s, size = %d\n", bp, size);
- lose |= size != 12;
- lose |= strncmp (bp, "hello, world", 12);
-
- puts (lose ? "Test FAILED!" : "Test succeeded.");
-
- return lose;
-}