diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/Makefile | 1 | ||||
| -rw-r--r-- | tests/test_issue57.c | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/Makefile b/tests/Makefile index 8faf11a..81a1943 100644 --- a/tests/Makefile +++ b/tests/Makefile | |||
| @@ -42,6 +42,7 @@ RUNTIME_TARGETS= \ | |||
| 42 | test_gethostname_static \ | 42 | test_gethostname_static \ |
| 43 | test_getlogin_r_dynamic \ | 43 | test_getlogin_r_dynamic \ |
| 44 | test_getlogin_r_static \ | 44 | test_getlogin_r_static \ |
| 45 | test_issue57 \ | ||
| 45 | test_mbsrtowcs_dynamic \ | 46 | test_mbsrtowcs_dynamic \ |
| 46 | test_mbsrtowcs_static \ | 47 | test_mbsrtowcs_static \ |
| 47 | test_mbstowcs_dynamic \ | 48 | test_mbstowcs_dynamic \ |
diff --git a/tests/test_issue57.c b/tests/test_issue57.c new file mode 100644 index 0000000..ee9c38e --- /dev/null +++ b/tests/test_issue57.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]; | ||
| 7 | memcpy(buffer , buffer + 16, 16); | ||
| 8 | puts(buffer); | ||
| 9 | |||
| 10 | return ret; | ||
| 11 | } | ||
