summaryrefslogtreecommitdiff
path: root/regress/gnu/egcs/gcc-bounds/memcpy-7.c
diff options
context:
space:
mode:
authorAnil Madhavapeddy <avsm@cvs.openbsd.org>2004-04-23 21:36:16 +0000
committerAnil Madhavapeddy <avsm@cvs.openbsd.org>2004-04-23 21:36:16 +0000
commitf9396fe143405b99de82b6ea84c0eb98b6627380 (patch)
tree7ff2e6859d36929c777102fc228f4eeb9ce3b47d /regress/gnu/egcs/gcc-bounds/memcpy-7.c
parentae834b19461bc0784018ab2c201fffe866af2094 (diff)
Lots more regression tests to test builtins for gcc3 and various icky
corner cases. need to separate gcc2/gcc3 output expectations since the error formats have diverged.
Diffstat (limited to 'regress/gnu/egcs/gcc-bounds/memcpy-7.c')
-rw-r--r--regress/gnu/egcs/gcc-bounds/memcpy-7.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/regress/gnu/egcs/gcc-bounds/memcpy-7.c b/regress/gnu/egcs/gcc-bounds/memcpy-7.c
new file mode 100644
index 00000000000..d0990649439
--- /dev/null
+++ b/regress/gnu/egcs/gcc-bounds/memcpy-7.c
@@ -0,0 +1,9 @@
+#include <string.h>
+
+extern char buf[];
+
+int main(int argc, char **argv) {
+ char buf2[10] = "123456789";
+ memcpy(buf, buf2, sizeof buf2);
+ return 1;
+}