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 02:09:55 +0000 (18:09 -0800)
commit71766c25778fe13717259cdccb62463684794408
tree54c6c66a596ac1f86a79568cc6c70ab7d2fc06a3
parent9750a77b31f2fc6d548a02b3a9750c2794648fea
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.

Change-Id: Ib575af3c14e705bb62c18fad7d57e1cc0d242899
tests/string_test.cpp