1 // RUN: %clang_cl_asan %Od %p/dll_host.cpp %Fe%t
2 // RUN: %clang_cl_asan %LD %Od %s %Fe%t.dll
3 // RUN: not %run %t %t.dll 2>&1 | FileCheck %s
5 __attribute__((noinline
))
6 static void NullDeref(int *ptr
) {
7 // CHECK: ERROR: AddressSanitizer: access-violation on unknown address
8 // CHECK: {{0x0*000.. .*pc 0x.*}}
12 extern "C" __declspec(dllexport
)
15 // CHECK: {{ #1 0x.* in test_function .*\dll_null_deref.cpp:}}[[@LINE-1]]
16 // CHECK: AddressSanitizer can not provide additional info.