[compiler-rt] r335657 - Fix test broken by r335644
Vlad Tsyrklevich via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 26 13:21:33 PDT 2018
Author: vlad.tsyrklevich
Date: Tue Jun 26 13:21:33 2018
New Revision: 335657
URL: http://llvm.org/viewvc/llvm-project?rev=335657&view=rev
Log:
Fix test broken by r335644
Modified:
compiler-rt/trunk/test/cfi/target_uninstrumented.cpp
Modified: compiler-rt/trunk/test/cfi/target_uninstrumented.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/cfi/target_uninstrumented.cpp?rev=335657&r1=335656&r2=335657&view=diff
==============================================================================
--- compiler-rt/trunk/test/cfi/target_uninstrumented.cpp (original)
+++ compiler-rt/trunk/test/cfi/target_uninstrumented.cpp Tue Jun 26 13:21:33 2018
@@ -32,12 +32,14 @@ void A::f() {}
int main(int argc, char *argv[]) {
void *p = create_B();
// CHECK: runtime error: control flow integrity check for type 'A' failed during cast to unrelated type
- // CHECK: invalid vtable in module {{.*}}libtarget_uninstrumented.cpp.dynamic.so
+ // CHECK: invalid vtable
+ // CHECK: check failed in {{.*}}, vtable located in {{.*}}libtarget_uninstrumented.cpp.dynamic.so
A *a = (A *)p;
memset(p, 0, sizeof(A));
+
// CHECK: runtime error: control flow integrity check for type 'A' failed during cast to unrelated type
- // CHECK-NOT: invalid vtable in module
// CHECK: invalid vtable
+ // CHECK: check failed in {{.*}}, vtable located in (unknown)
a = (A *)p;
// CHECK: done
fprintf(stderr, "done %p\n", a);
More information about the llvm-commits
mailing list