diff --git a/compiler-rt/test/asan/TestCases/throw_invoke_test.cpp b/compiler-rt/test/asan/TestCases/throw_invoke_test.cpp index bbfa1c7b95ca..3f832e9b5ffe 100644 --- a/compiler-rt/test/asan/TestCases/throw_invoke_test.cpp +++ b/compiler-rt/test/asan/TestCases/throw_invoke_test.cpp @@ -1,51 +1,54 @@ // RUN: %clangxx_asan %s -o %t && %run %t // RUN: %clangxx_asan %s -o %t %linux_static_libstdcplusplus && %run %t +// Investigate why it fails with NDK 21. +// UNSUPPORTED: android + #include static volatile int zero = 0; inline void pretend_to_do_something(void *x) { __asm__ __volatile__("" : : "r" (x) : "memory"); } __attribute__((noinline)) void ReallyThrow() { fprintf(stderr, "ReallyThrow\n"); try { if (zero == 0) throw 42; else if (zero == 1) throw 1.; } catch(double x) { } } __attribute__((noinline)) void Throw() { int a, b, c, d, e; pretend_to_do_something(&a); pretend_to_do_something(&b); pretend_to_do_something(&c); pretend_to_do_something(&d); pretend_to_do_something(&e); fprintf(stderr, "Throw stack = %p\n", &a); ReallyThrow(); } __attribute__((noinline)) void CheckStack() { int ar[100]; pretend_to_do_something(ar); for (int i = 0; i < 100; i++) ar[i] = i; fprintf(stderr, "CheckStack stack = %p, %p\n", ar, ar + 100); } int main(int argc, char** argv) { try { Throw(); } catch(int a) { fprintf(stderr, "a = %d\n", a); } CheckStack(); } diff --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/mallopt.cpp b/compiler-rt/test/sanitizer_common/TestCases/Linux/mallopt.cpp index 9ac3c5dc5978..37d1ebb11a4c 100644 --- a/compiler-rt/test/sanitizer_common/TestCases/Linux/mallopt.cpp +++ b/compiler-rt/test/sanitizer_common/TestCases/Linux/mallopt.cpp @@ -1,10 +1,14 @@ // Check that mallopt does not return invalid values (ex. -1). // RUN: %clangxx -O2 %s -o %t && %run %t + +// Investigate why it fails with NDK 21. +// UNSUPPORTED: android + #include #include int main() { // Try a random mallopt option, possibly invalid. int res = mallopt(-42, 0); assert(res == 0 || res == 1); }