[asan] Fix one test on Android-L.

index() is deprecated.

llvm-svn: 218312
This commit is contained in:
Evgeniy Stepanov 2014-09-23 15:42:04 +00:00
parent c546625c4f
commit c07dc68852
1 changed files with 2 additions and 1 deletions

View File

@ -221,7 +221,8 @@ UNUSED static void RunStrChrTest(PointerToStrChr2 StrChr) {
TEST(AddressSanitizer, StrChrAndIndexOOBTest) {
RunStrChrTest(&strchr);
#if !defined(_WIN32) // no index() on Windows.
// No index() on Windows and on Android L.
#if !defined(_WIN32) && !defined(__ANDROID__)
RunStrChrTest(&index);
#endif
}