[asan] debug_mapping.cc should also pass when the leading digit of SHADOW_SCALE is...
authorDaniel Sanders <daniel.sanders@imgtec.com>
Thu, 23 Apr 2015 13:23:21 +0000 (13:23 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Thu, 23 Apr 2015 13:23:21 +0000 (13:23 +0000)
Summary:
Previously the CHECK directive for SHADOW_SCALE only matched decimal digits
causing it to match '7' on x86_64 instead of the whole value.

This fixes a failure on mips-linux-gnu targets where the leading digit is 'a'.

Reviewers: kcc, sagar, timurrrr

Reviewed By: timurrrr

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D9199

llvm-svn: 235594

compiler-rt/test/asan/TestCases/debug_mapping.cc

index f96abf6..bf6fa63 100644 (file)
@@ -8,7 +8,7 @@
 
 // printed because of verbosity=1
 // CHECK: SHADOW_SCALE: [[SCALE:[0-9]+]]
-// CHECK: SHADOW_OFFSET: [[OFFSET:[0-9]+]]
+// CHECK: SHADOW_OFFSET: [[OFFSET:[0-9a-f]+]]
 
 int main() {
   size_t scale, offset;