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

Timur Iskhodzhanov timurrrr at google.com
Thu Aug 28 06:20:23 PDT 2014


Author: timurrrr
Date: Thu Aug 28 08:20:23 2014
New Revision: 216665

URL: http://llvm.org/viewvc/llvm-project?rev=216665&view=rev
Log:
[ASan/Win] Add a test case for r216663 [-Zl vs LIBCMT vs asan_win_uar_thunk]

Added:
    compiler-rt/trunk/test/asan/TestCases/Windows/use_after_return_linkage.cc

Added: compiler-rt/trunk/test/asan/TestCases/Windows/use_after_return_linkage.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/use_after_return_linkage.cc?rev=216665&view=auto
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/use_after_return_linkage.cc (added)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/use_after_return_linkage.cc Thu Aug 28 08:20:23 2014
@@ -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);
+}





More information about the llvm-commits mailing list