forked from OSchip/llvm-project
[asan] Update Windows test expectations for LLVM's MS demangler
After r375041 llvm-symbolizer uses it for demangling instead of UnDecorateSymbolName. LLVM puts spaces after commas while Microsoft does not. llvm-svn: 375147
This commit is contained in:
parent
2b7899b730
commit
0aaa193127
|
@ -45,6 +45,6 @@ int main() {
|
|||
// CHECK: AddressSanitizer: heap-use-after-free on address [[ADDR:0x[0-9a-f]+]]
|
||||
// CHECK: foo::bar<42>{{.*}}demangled_names.cpp
|
||||
// CHECK: foo::spam{{.*}}demangled_names.cpp
|
||||
// CHECK: baz<char *,1>{{.*}}demangled_names.cpp
|
||||
// CHECK: baz<char *,{{ *}}1>{{.*}}demangled_names.cpp
|
||||
// CHECK: A<char *>::~A<char *>{{.*}}demangled_names.cpp
|
||||
}
|
||||
|
|
|
@ -13,10 +13,10 @@ int f(char c, char *p, char *q) {
|
|||
// [[PTR1:0x[0-9a-f]+]] [[PTR2:0x[0-9a-f]+]]
|
||||
switch (c) {
|
||||
case 'g':
|
||||
// CMP: #{{[0-9]+ .*}} in f({{char, char\*, char\*|char,char \*,char \*}}) {{.*}}invalid-pointer-pairs.cpp:[[@LINE+1]]
|
||||
// CMP: #{{[0-9]+ .*}} in f({{char, *char *\*, *char *\*}}) {{.*}}invalid-pointer-pairs.cpp:[[@LINE+1]]
|
||||
return p > q;
|
||||
case 's':
|
||||
// SUB: #{{[0-9]+ .*}} in f({{char, char\*, char\*|char,char \*,char \*}}) {{.*}}invalid-pointer-pairs.cpp:[[@LINE+1]]
|
||||
// SUB: #{{[0-9]+ .*}} in f({{char, *char *\*, *char *\*}}) {{.*}}invalid-pointer-pairs.cpp:[[@LINE+1]]
|
||||
return p - q;
|
||||
case 'k': {
|
||||
// OK-NOT: ERROR
|
||||
|
@ -26,7 +26,7 @@ int f(char c, char *p, char *q) {
|
|||
case 'f': {
|
||||
char *p3 = p + 20;
|
||||
free(p);
|
||||
// FREE: #{{[0-9]+ .*}} in f({{char, char\*, char\*|char,char \*,char \*}}) {{.*}}invalid-pointer-pairs.cpp:[[@LINE+2]]
|
||||
// FREE: #{{[0-9]+ .*}} in f({{char, *char *\*, *char *\*}}) {{.*}}invalid-pointer-pairs.cpp:[[@LINE+2]]
|
||||
// FREE: freed by thread
|
||||
return p < p3;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue