brintos

brintos / llvm-project-archived public Read only

0
0
Text · 511 B · f0c3dea Raw
13 lines · cpp
1// Make sure we can link a DLL with large functions which would mean2// functions such as __asan_loadN and __asan_storeN will be called3// from the DLL.  We simulate the large function with4// -mllvm -asan-instrumentation-with-call-threshold=0.5// RUN: %clang_cl_asan %s -c -Fo%t.obj -mllvm -asan-instrumentation-with-call-threshold=06// RUN: lld-link /nologo /DLL /OUT:%t.dll %t.obj  %asan_lib %asan_thunk7// REQUIRES: lld-available8 9void f(long* foo, long* bar) {10  // One load and one store11  *foo = *bar;12}13