19 lines · cpp
1// Build an executable with ASan, then extract the DLLs that it depends on.2// RUN: %clang_cl_asan %s %Fe%t.exe3// RUN: llvm-readobj --coff-imports %t.exe | grep Name: | sed -e 's/ *Name: *//' > %t4//5// Make sure the binary doesn't depend on dbghelp directly.6// RUN: not grep dbghelp.dll %t7//8// Make sure any clang_rt DLLs it depends on don't depend on dbghelp. In the9// static build, there won't be any clang_rt DLLs.10// RUN: not grep cl""ang_rt %t || \11// RUN: grep cl""ang_rt %t | xargs which | \12// RUN: xargs llvm-readobj --coff-imports | not grep dbghelp.dll13 14extern "C" int puts(const char *);15 16int main() {17 puts("main");18}19