1 // Make sure LIBCMT doesn't accidentally get added to the list of DEFAULTLIB
2 // directives.  REQUIRES: asan-dynamic-runtime
3 // RUN: %clang_cl_asan -LD %s | FileCheck %s
4 // CHECK: Creating library
5 // CHECK-NOT: LIBCMT
6 
foo(int * p)7 void foo(int *p) { *p = 42; }
8 
bar()9 __declspec(dllexport) void bar() {
10   int x;
11   foo(&x);
12 }
13