[memcpy] test if compilers can optimize out memcpy's