Bug: https://github.com/android-ndk/ndk/issues/744 Test: ran tests Change-Id: Iad9514946e06d55b6a3aa0f945d9a63bff900881