CFI: try to make test/cfi/base-derived-destructor.cpp pass on Windows

llvm-svn: 252468
This commit is contained in:
Hans Wennborg 2015-11-09 14:25:08 +00:00
parent 2910a4f6b1
commit dab6b25e38
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ int main() {
fprintf(stderr, "1\n"); fprintf(stderr, "1\n");
// CFI-DIAG: runtime error: control flow integrity check for type 'B' failed during base-to-derived cast // CFI-DIAG: runtime error: control flow integrity check for type 'B' failed during base-to-derived cast
// CFI-DIAG-NEXT: note: vtable is of type 'A<B>' // CFI-DIAG-NEXT: note: vtable is of type '{{(class )?}}A<{{(class )?}}B>'
B* b = new B; B* b = new B;
break_optimization(b); break_optimization(b);
delete b; // UB here delete b; // UB here