diff options
author | Aleksander Guryanov <caiiiycuk@gmail.com> | 2013-02-05 21:10:51 +0700 |
---|---|---|
committer | Aleksander Guryanov <caiiiycuk@gmail.com> | 2013-02-06 21:31:02 +0700 |
commit | 647b5cf5ceb346d9eb417e250c46151cf95c12cd (patch) | |
tree | 2b36d6fccade80f7090b9b8b011d50ea855984ee | |
parent | 9aa7bbf6987cad3cff53906c5d6a6e77b6bd5b9c (diff) |
Test for memmove
-rwxr-xr-x | tests/runner.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py index b6980933..71414dd5 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -4197,6 +4197,19 @@ The current type of b is: 9 ''' self.do_run(src, 'final: -403200.'); + def test_memmove3(self): + src = ''' + #include <stdio.h> + #include <string.h> + int main() { + char str[] = "memmove can be vvery useful....!"; + memmove(str+15, str+16, 17); + puts(str); + return 0; + } + ''' + self.do_run(src, 'memmove can be very useful....!') + def test_bsearch(self): if Settings.QUANTUM_SIZE == 1: return self.skip('Test cannot work with q1') |