summaryrefslogtreecommitdiff
path: root/regress/gnu/egcs/gcc-bounds/md-4.c
diff options
context:
space:
mode:
authorAnil Madhavapeddy <avsm@cvs.openbsd.org>2003-10-07 22:24:27 +0000
committerAnil Madhavapeddy <avsm@cvs.openbsd.org>2003-10-07 22:24:27 +0000
commit6628301891a6c202158f8acdda10d750a0e71cbc (patch)
treeda8f1953413bc85c46724aa537eba2988c5edc15 /regress/gnu/egcs/gcc-bounds/md-4.c
parentc76eb04ac867dbc8c6fbf9145f3b694883fb63e7 (diff)
add a few regression tests for the recently fixed md functions
Diffstat (limited to 'regress/gnu/egcs/gcc-bounds/md-4.c')
-rw-r--r--regress/gnu/egcs/gcc-bounds/md-4.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/regress/gnu/egcs/gcc-bounds/md-4.c b/regress/gnu/egcs/gcc-bounds/md-4.c
new file mode 100644
index 00000000000..06fb2e18fde
--- /dev/null
+++ b/regress/gnu/egcs/gcc-bounds/md-4.c
@@ -0,0 +1,17 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/types.h>
+#include <md5.h>
+
+const unsigned char data[] = "1234567890abcdefghijklmnopqrstuvwxyz";
+
+int
+main(int argc, char **argv)
+{
+ MD5_CTX ctx;
+ char ret[10];
+
+ MD5Init(&ctx);
+ MD5Data(data, sizeof data - 1, ret);
+ printf("%s\n", ret);
+}