summaryrefslogtreecommitdiff
path: root/compiler-rt/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
commitee59c5e9221d0ca0cee9985b5b8865243f4dab71 (patch)
treeb9ca6a074f8b5b870d19692ff10f47c6c44e4f48 /compiler-rt/test/cfi
parentb76dcd17d143514c13da22b90ccbdee8a44fc073 (diff)
downloadllvm-ee59c5e9221d0ca0cee9985b5b8865243f4dab71.tar.gz
Fix test broken by r335644
llvm-svn: 335657
Diffstat (limited to 'compiler-rt/test/cfi')
-rw-r--r--compiler-rt/test/cfi/target_uninstrumented.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler-rt/test/cfi/target_uninstrumented.cpp b/compiler-rt/test/cfi/target_uninstrumented.cpp
index 5df0738c078b..6379b7e12f44 100644
--- a/compiler-rt/test/cfi/target_uninstrumented.cpp
+++ b/compiler-rt/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);