forked from OSchip/llvm-project
[asan] XFAIL one test on Android.
And add a missing return in main, just in case. llvm-svn: 218674
This commit is contained in:
parent
a891e6d44a
commit
a9d434918e
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue