]> git.proxmox.com Git - rustc.git/blob - src/compiler-rt/test/asan/TestCases/Linux/asan_rt_confict_test-1.cc
5687f17c202e479bdc25f4b603e2e59de1d7c46a
[rustc.git] / src / compiler-rt / test / asan / TestCases / Linux / asan_rt_confict_test-1.cc
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
9 #include <stdlib.h>
10 int main(int argc, char **argv) { return 0; }
11
12 // CHECK: Your application is linked against incompatible ASan runtimes