forked from OSchip/llvm-project
[ASan Win] Fix a couple of warnings in tests and enable -WX
llvm-svn: 209887
This commit is contained in:
parent
9ed1beb20a
commit
8f655fc0fb
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue