1 # Check if clang crash on non-ascii comments 2 # See b.android.com/81440 3 # 4 5 result=$(NDK_TOOLCHAIN_VERSION=clang $NDK/ndk-build -B APP_ABI=armeabi 2>&1) 6 echo $result | grep -q "error: expected" 7 RET=$? 8 rm -rf obj 9 10 if [ $RET != 0 ]; then 11 echo "Error: did not find 'error: expected'" 12 echo "Output:" 13 echo $result 14 exit 1 15 fi 16 17