diff options
Diffstat (limited to 'tests/test_issue57_strcpy.c')
| -rw-r--r-- | tests/test_issue57_strcpy.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_issue57_strcpy.c b/tests/test_issue57_strcpy.c new file mode 100644 index 0000000..24f8ab1 --- /dev/null +++ b/tests/test_issue57_strcpy.c | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | #include "common.h" | ||
| 2 | |||
| 3 | #include <string.h> | ||
| 4 | |||
| 5 | int main(int argc, char** argv) { | ||
| 6 | char buffer[32] ={'a', 'b', 'c', 0}; | ||
| 7 | strcpy(buffer , buffer + 16); | ||
| 8 | puts(buffer); | ||
| 9 | |||
| 10 | return ret; | ||
| 11 | } | ||
