summaryrefslogtreecommitdiff
path: root/test/cfi
diff options
context:
space:
mode:
authorVlad Tsyrklevich <vlad@tsyrklevich.net>2018-06-26 20:21:33 +0000
committerVlad Tsyrklevich <vlad@tsyrklevich.net>2018-06-26 20:21:33 +0000
commitb36fc83e6f6a1482499e471a4755e8f0aa76227a (patch)
tree0499446a3b50b39424723d06c021a4d37f2df457 /test/cfi
parent45aa866d1317655b2661f9dbebabcd306c501f36 (diff)
Fix test broken by r335644
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@335657 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/cfi')
-rw-r--r--test/cfi/target_uninstrumented.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/cfi/target_uninstrumented.cpp b/test/cfi/target_uninstrumented.cpp
index 5df0738c0..6379b7e12 100644
--- a/test/cfi/target_uninstrumented.cpp
+++ b/test/cfi/target_uninstrumented.cpp
@@ -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);