diff options
Diffstat (limited to 'regress/gnu/egcs/gcc-bounds/memcpy-7.c')
-rw-r--r-- | regress/gnu/egcs/gcc-bounds/memcpy-7.c | 9 |
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; +} |