<div dir="ltr">Thanks!</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 13, 2015 at 4:09 PM, Filipe Cabecinhas <span dir="ltr"><<a href="mailto:me@filcab.net" target="_blank">me@filcab.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: filcab<br>
Date: Fri Feb 13 18:09:09 2015<br>
New Revision: 229190<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=229190&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=229190&view=rev</a><br>
Log:<br>
Use @LINE instead of hardcoded line numbers<br>
<br>
Modified:<br>
    compiler-rt/trunk/test/ubsan/TestCases/TypeCheck/null.cpp<br>
<br>
Modified: compiler-rt/trunk/test/ubsan/TestCases/TypeCheck/null.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/ubsan/TestCases/TypeCheck/null.cpp?rev=229190&r1=229189&r2=229190&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/ubsan/TestCases/TypeCheck/null.cpp?rev=229190&r1=229189&r2=229190&view=diff</a><br>
==============================================================================<br>
--- compiler-rt/trunk/test/ubsan/TestCases/TypeCheck/null.cpp (original)<br>
+++ compiler-rt/trunk/test/ubsan/TestCases/TypeCheck/null.cpp Fri Feb 13 18:09:09 2015<br>
@@ -18,21 +18,21 @@ int main(int, char **argv) {<br>
<br>
   switch (argv[1][0]) {<br>
   case 'l':<br>
-    // CHECK-LOAD: null.cpp:22:12: runtime error: load of null pointer of type 'int'<br>
+    // CHECK-LOAD: null.cpp:[[@LINE+1]]:12: runtime error: load of null pointer of type 'int'<br>
     return *p;<br>
   case 's':<br>
-    // CHECK-STORE: null.cpp:25:5: runtime error: store to null pointer of type 'int'<br>
+    // CHECK-STORE: null.cpp:[[@LINE+1]]:5: runtime error: store to null pointer of type 'int'<br>
     *p = 1;<br>
     break;<br>
   case 'r':<br>
-    // CHECK-REFERENCE: null.cpp:29:15: runtime error: reference binding to null pointer of type 'int'<br>
+    // CHECK-REFERENCE: null.cpp:[[@LINE+1]]:15: runtime error: reference binding to null pointer of type 'int'<br>
     {int &r = *p;}<br>
     break;<br>
   case 'm':<br>
-    // CHECK-MEMBER: null.cpp:33:15: runtime error: member access within null pointer of type 'S'<br>
+    // CHECK-MEMBER: null.cpp:[[@LINE+1]]:15: runtime error: member access within null pointer of type 'S'<br>
     return s->k;<br>
   case 'f':<br>
-    // CHECK-MEMFUN: null.cpp:36:12: runtime error: member call on null pointer of type 'S'<br>
+    // CHECK-MEMFUN: null.cpp:[[@LINE+1]]:12: runtime error: member call on null pointer of type 'S'<br>
     return s->f();<br>
   }<br>
 }<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Alexey Samsonov<br><a href="mailto:vonosmas@gmail.com" target="_blank">vonosmas@gmail.com</a></div></div>
</div>