[ASan/Win] Add a test case for r216663 [-Zl vs LIBCMT vs asan_win_uar_thunk]
llvm-svn: 216665
This commit is contained in:
parent
37011a1e24
commit
f77d20b1a9
|
@ -0,0 +1,12 @@
|
|||
// Make sure LIBCMT doesn't accidentally get added to the list of DEFAULTLIB
|
||||
// directives. REQUIRES: asan-dynamic-runtime
|
||||
// RUN: %clang_cl_asan -LD %s | FileCheck %s
|
||||
// CHECK: Creating library
|
||||
// CHECK-NOT: LIBCMT
|
||||
|
||||
void foo(int *p) { *p = 42; }
|
||||
|
||||
__declspec(dllexport) void bar() {
|
||||
int x;
|
||||
foo(&x);
|
||||
}
|
Loading…
Reference in New Issue