From 3177a7f38a6ae47681909f52e80764fa84660d85 Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Mon, 9 Dec 2013 19:04:33 +0000 Subject: [PATCH] ubsan: Fix typo in 'TypeCheck/vptr.cpp' test to resolve 32bit failure. llvm-svn: 196799 --- compiler-rt/lib/ubsan/lit_tests/TestCases/TypeCheck/vptr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/ubsan/lit_tests/TestCases/TypeCheck/vptr.cpp b/compiler-rt/lib/ubsan/lit_tests/TestCases/TypeCheck/vptr.cpp index bd7970a959bd..9095f7279a66 100644 --- a/compiler-rt/lib/ubsan/lit_tests/TestCases/TypeCheck/vptr.cpp +++ b/compiler-rt/lib/ubsan/lit_tests/TestCases/TypeCheck/vptr.cpp @@ -101,7 +101,7 @@ int main(int, char **argv) { // CHECK-OFFSET: vptr.cpp:[[@LINE+5]]:12: runtime error: member call on address [[PTR:0x[0-9a-f]*]] which does not point to an object of type 'U' // CHECK-OFFSET-NEXT: 0x{{[0-9a-f]*}}: note: object is base class subobject at offset {{8|16}} within object of type [[DYN_TYPE:'U']] // CHECK-OFFSET-NEXT: {{^ .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. }} - // CHECK-OFFSET-NEXT: {{^ \^ ( ~~~~~~~~~~~~)~~~~~~~~~~~ *$}} + // CHECK-OFFSET-NEXT: {{^ \^ ( ~~~~~~~~~~~~)?~~~~~~~~~~~ *$}} // CHECK-OFFSET-NEXT: {{^ ( )?vptr for}} 'T' base class of [[DYN_TYPE]] return reinterpret_cast(p)->v() - 2;