aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-01-06 20:38:59 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-01-06 20:38:59 -0800
commit7770587b94dc0ffafaebf43a57dc0bebfc99c24a (patch)
tree05b6da26aee1fedb5369609a382d2c62d94b51bb /tests
parent8da5865eeb26b1b4945c1e8b4a17a78912f5bfc4 (diff)
optimize memmove
Diffstat (limited to 'tests')
-rw-r--r--tests/runner.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 5c2f5e13..ca3fe473 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -2272,6 +2272,19 @@ def process(filename):
'''
self.do_run(src)
+ def test_memmove(self):
+ src = '''
+ #include <stdio.h>
+ #include <string.h>
+ int main() {
+ char str[] = "memmove can be very useful....!";
+ memmove (str+20, str+15, 11);
+ puts(str);
+ return 0;
+ }
+ '''
+ self.do_run(src)
+
def test_bsearch(self):
if Settings.QUANTUM_SIZE == 1: return self.skip('Test cannot work with q1')