From f9396fe143405b99de82b6ea84c0eb98b6627380 Mon Sep 17 00:00:00 2001 From: Anil Madhavapeddy Date: Fri, 23 Apr 2004 21:36:16 +0000 Subject: 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. --- regress/gnu/egcs/gcc-bounds/memcpy-7.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 regress/gnu/egcs/gcc-bounds/memcpy-7.c (limited to 'regress/gnu/egcs/gcc-bounds/memcpy-7.c') 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 + +extern char buf[]; + +int main(int argc, char **argv) { + char buf2[10] = "123456789"; + memcpy(buf, buf2, sizeof buf2); + return 1; +} -- cgit v1.2.3