[ASan Win] Fix a couple of warnings in tests and enable -WX

llvm-svn: 209887
This commit is contained in:
Timur Iskhodzhanov 2014-05-30 11:58:32 +00:00
parent 9ed1beb20a
commit 8f655fc0fb
4 changed files with 4 additions and 0 deletions

View File

@ -28,4 +28,5 @@ int test_function() {
// CHECK: Address [[ADDR]] is located in stack of thread T0 at offset {{.*}} in frame
// CHECK-NEXT: test_function {{.*}}dll_intercept_memcpy.cc
// CHECK: 'buff2' <== Memory access at offset {{.*}} overflows this variable
return 0;
}

View File

@ -30,4 +30,5 @@ int test_function() {
// CHECK: Address [[ADDR]] is located in stack of thread T0 at offset {{.*}} in frame
// CHECK-NEXT: test_function {{.*}}dll_intercept_memcpy_indirect.cc
// CHECK: 'buff2' <== Memory access at offset {{.*}} overflows this variable
return 0;
}

View File

@ -28,4 +28,5 @@ int test_function() {
// CHECK: Address [[ADDR]] is located in stack of thread T0 at offset {{.*}} in frame
// CHECK-NEXT: test_function {{.*}}dll_intercept_memset.cc
// CHECK: 'buff' <== Memory access at offset {{.*}} overflows this variable
return 0;
}

View File

@ -73,6 +73,7 @@ if config.asan_dynamic:
if platform.system() == 'Windows':
clang_cl_asan_cxxflags = ["-fsanitize=address",
"-Wno-deprecated-declarations",
"-WX",
"-D_HAS_EXCEPTIONS=0",
"-Zi"] + target_cflags
clang_invocation = build_invocation(clang_cl_asan_cxxflags)