OSDN Git Service

Add a memcpy(a, a, n) test.
authorChristopher Ferris <cferris@google.com>
Sat, 13 Feb 2016 01:24:27 +0000 (17:24 -0800)
committerChristopher Ferris <cferris@google.com>
Sat, 13 Feb 2016 17:49:22 +0000 (09:49 -0800)
commitee478ead7dc30235509e36f7675e1b62484bc25d
tree2cc82f92eb912590f622d7d55935b9816d2baa85
parent39b952cf0a824db1cdc301dd048db0e56d4d5c24
Add a memcpy(a, a, n) test.

clang depends on memcpy where src and dst are the same to actually
work. Even though this is, technically, undefined behavior,
clang is not going to change. Add a test to verify this assumption
holds true for android devices.

(cherry picked from commit 71766c25778fe13717259cdccb62463684794408)

Change-Id: I7d8ba4098729194dda69eab7070fd5c4ba1abbe9
tests/string_test.cpp