[asan] Fix one test on Android-L.
index() is deprecated. llvm-svn: 218312
This commit is contained in:
parent
c546625c4f
commit
c07dc68852
|
|
@ -221,7 +221,8 @@ UNUSED static void RunStrChrTest(PointerToStrChr2 StrChr) {
|
||||||
|
|
||||||
TEST(AddressSanitizer, StrChrAndIndexOOBTest) {
|
TEST(AddressSanitizer, StrChrAndIndexOOBTest) {
|
||||||
RunStrChrTest(&strchr);
|
RunStrChrTest(&strchr);
|
||||||
#if !defined(_WIN32) // no index() on Windows.
|
// No index() on Windows and on Android L.
|
||||||
|
#if !defined(_WIN32) && !defined(__ANDROID__)
|
||||||
RunStrChrTest(&index);
|
RunStrChrTest(&index);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue