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