]>
git.proxmox.com Git - rustc.git/blob - src/compiler-rt/test/asan/TestCases/Linux/asan_rt_confict_test-1.cc
5687f17c202e479bdc25f4b603e2e59de1d7c46a
1 // Test that preloading dynamic runtime to statically sanitized
2 // executable is prohibited.
4 // RUN: %clangxx_asan_static %s -o %t
5 // RUN: LD_PRELOAD=%shared_libasan not %run %t 2>&1 | FileCheck %s
7 // REQUIRES: asan-dynamic-runtime
10 int main(int argc
, char **argv
) { return 0; }
12 // CHECK: Your application is linked against incompatible ASan runtimes