[asan] fix ShadowGapTest on PowerPC64

llvm-svn: 181991
This commit is contained in:
Kostya Serebryany 2013-05-16 07:54:28 +00:00
parent a551aaa944
commit b7ca536888
1 changed files with 4 additions and 0 deletions

View File

@ -876,8 +876,12 @@ TEST(AddressSanitizer, ThreadNamesTest) {
TEST(AddressSanitizer, ShadowGapTest) { TEST(AddressSanitizer, ShadowGapTest) {
#if SANITIZER_WORDSIZE == 32 #if SANITIZER_WORDSIZE == 32
char *addr = (char*)0x22000000; char *addr = (char*)0x22000000;
#else
# if defined(__powerpc64__)
char *addr = (char*)0x024000800000;
# else # else
char *addr = (char*)0x0000100000080000; char *addr = (char*)0x0000100000080000;
# endif
#endif #endif
EXPECT_DEATH(*addr = 1, "AddressSanitizer: SEGV on unknown"); EXPECT_DEATH(*addr = 1, "AddressSanitizer: SEGV on unknown");
} }