CFI: try to make test/cfi/base-derived-destructor.cpp pass on Windows
llvm-svn: 252468
This commit is contained in:
parent
2910a4f6b1
commit
dab6b25e38
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue