[asan] XFAIL one test on Android.

And add a missing return in main, just in case.

llvm-svn: 218674
This commit is contained in:
Evgeniy Stepanov 2014-09-30 12:54:32 +00:00
parent a891e6d44a
commit a9d434918e
1 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,8 @@
// Test that we do not poison the array cookie if the operator new is defined
// inside the class.
// RUN: %clangxx_asan %s -o %t && %run %t
//
// XFAIL: android
#include <new>
#include <stdlib.h>
#include <stdint.h>
@ -31,4 +33,5 @@ int main() {
assert(reinterpret_cast<uintptr_t>(foo) ==
reinterpret_cast<uintptr_t>(Foo::allocated) + sizeof(void*));
*reinterpret_cast<uintptr_t*>(Foo::allocated) = 42;
return 0;
}