[compiler-rt] r278715 - [msan] Correct @LINE expression in obstack.cc

Daniel Sanders via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 15 11:56:54 PDT 2016


Author: dsanders
Date: Mon Aug 15 13:56:54 2016
New Revision: 278715

URL: http://llvm.org/viewvc/llvm-project?rev=278715&view=rev
Log:
[msan] Correct @LINE expression in obstack.cc

Summary:

[[@LINE-30]] only worked because the resulting 3 matches the first character of
30. With the additional blank lines the resulting 5 no longer matches 30.

Reviewers: eugenis

Subscribers: eugenis, llvm-commits

Differential Revision: https://reviews.llvm.org/D23515

Modified:
    compiler-rt/trunk/test/msan/Linux/obstack.cc

Modified: compiler-rt/trunk/test/msan/Linux/obstack.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/msan/Linux/obstack.cc?rev=278715&r1=278714&r2=278715&view=diff
==============================================================================
--- compiler-rt/trunk/test/msan/Linux/obstack.cc (original)
+++ compiler-rt/trunk/test/msan/Linux/obstack.cc Mon Aug 15 13:56:54 2016
@@ -1,6 +1,8 @@
 // RUN: %clangxx_msan -O0 -g %s -o %t && %run %t
 // RUN: %clangxx_msan -O0 -g -DPOSITIVE %s -o %t && not %run %t |& FileCheck %s
+
 // XFAIL: target-is-mips64el
+
 #include <obstack.h>
 #include <sanitizer/msan_interface.h>
 #include <stdlib.h>
@@ -30,7 +32,7 @@ int main(void) {
       __msan_check_mem_is_initialized(p, sizeof(data) + 1);
     }
     // CHECK: WARNING: MemorySanitizer: use-of-uninitialized-value
-    // CHECK: #0 0x{{.*}} in main{{.*}}obstack.cc:[[@LINE-30]]
+    // CHECK: #0 0x{{.*}} in main{{.*}}obstack.cc:[[@LINE-3]]
 #endif
   }
   obstack_free(&obs, 0);




More information about the llvm-commits mailing list