[ASan/Win] Add a test case for r216663 [-Zl vs LIBCMT vs asan_win_uar_thunk]

llvm-svn: 216665
This commit is contained in:
Timur Iskhodzhanov 2014-08-28 13:20:23 +00:00
parent 37011a1e24
commit f77d20b1a9
1 changed files with 12 additions and 0 deletions

View File

@ -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);
}