blob: 8f92a149fe0a64c01ee6aefa5b857570cf6c0ce4 [file] [log] [blame]
// UNSUPPORTED: target={{.*-windows-gnu}}
// 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);
}