1 // Test that on non-glibc platforms, a number of malloc-related functions are
4 // RUN: not %clang_asan -Dtestfunc=mallinfo %s -o %t
5 // RUN: not %clang_asan -Dtestfunc=mallopt %s -o %t
6 // RUN: not %clang_asan -Dtestfunc=memalign %s -o %t
7 // RUN: not %clang_asan -Dtestfunc=pvalloc %s -o %t
8 // RUN: not %clang_asan -Dtestfunc=cfree %s -o %t
10 // REQUIRES: glibc-2.27
11 // Conflicts with BIONIC declarations.
12 // Lacks mallinfo, mallopt except in libmalloc. cfree with different
14 // UNSUPPORTED: target={{.*solaris.*}}
16 // Inhibit conflicting declaration of memalign on Solaris.
17 #if defined(__sun__) && defined(__svr4__)
23 // For glibc, cause link failures by referencing a nonexistent function.
26 #define testfunc nonexistent_function