[compiler-rt] r196799 - ubsan: Fix typo in 'TypeCheck/vptr.cpp' test to resolve 32bit failure.

Will Dietz wdietz2 at illinois.edu
Mon Dec 9 11:04:33 PST 2013


Author: wdietz2
Date: Mon Dec  9 13:04:33 2013
New Revision: 196799

URL: http://llvm.org/viewvc/llvm-project?rev=196799&view=rev
Log:
ubsan: Fix typo in 'TypeCheck/vptr.cpp' test to resolve 32bit failure.

Modified:
    compiler-rt/trunk/lib/ubsan/lit_tests/TestCases/TypeCheck/vptr.cpp

Modified: compiler-rt/trunk/lib/ubsan/lit_tests/TestCases/TypeCheck/vptr.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/ubsan/lit_tests/TestCases/TypeCheck/vptr.cpp?rev=196799&r1=196798&r2=196799&view=diff
==============================================================================
--- compiler-rt/trunk/lib/ubsan/lit_tests/TestCases/TypeCheck/vptr.cpp (original)
+++ compiler-rt/trunk/lib/ubsan/lit_tests/TestCases/TypeCheck/vptr.cpp Mon Dec  9 13:04:33 2013
@@ -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<U*>(p)->v() - 2;
 





More information about the llvm-commits mailing list