14 lines · cpp
1// Test that preloading dynamic runtime to statically sanitized2// executable is prohibited.3//4// RUN: %clangxx_asan_static %s -o %t5// RUN: env LD_PRELOAD=%shared_libasan not %run %t 2>&1 | FileCheck %s6 7// REQUIRES: asan-dynamic-runtime8// XFAIL: android9 10#include <stdlib.h>11int main(int argc, char **argv) { return 0; }12 13// CHECK: Your application is linked against incompatible ASan runtimes14