[compiler-rt] r229190 - Use @LINE instead of hardcoded line numbers

Alexey Samsonov vonosmas at gmail.com
Mon Feb 16 14:02:24 PST 2015


Thanks!

On Fri, Feb 13, 2015 at 4:09 PM, Filipe Cabecinhas <me at filcab.net> wrote:

> Author: filcab
> Date: Fri Feb 13 18:09:09 2015
> New Revision: 229190
>
> URL: http://llvm.org/viewvc/llvm-project?rev=229190&view=rev
> Log:
> Use @LINE instead of hardcoded line numbers
>
> Modified:
>     compiler-rt/trunk/test/ubsan/TestCases/TypeCheck/null.cpp
>
> Modified: compiler-rt/trunk/test/ubsan/TestCases/TypeCheck/null.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/ubsan/TestCases/TypeCheck/null.cpp?rev=229190&r1=229189&r2=229190&view=diff
>
> ==============================================================================
> --- compiler-rt/trunk/test/ubsan/TestCases/TypeCheck/null.cpp (original)
> +++ compiler-rt/trunk/test/ubsan/TestCases/TypeCheck/null.cpp Fri Feb 13
> 18:09:09 2015
> @@ -18,21 +18,21 @@ int main(int, char **argv) {
>
>    switch (argv[1][0]) {
>    case 'l':
> -    // CHECK-LOAD: null.cpp:22:12: runtime error: load of null pointer of
> type 'int'
> +    // CHECK-LOAD: null.cpp:[[@LINE+1]]:12: runtime error: load of null
> pointer of type 'int'
>      return *p;
>    case 's':
> -    // CHECK-STORE: null.cpp:25:5: runtime error: store to null pointer
> of type 'int'
> +    // CHECK-STORE: null.cpp:[[@LINE+1]]:5: runtime error: store to null
> pointer of type 'int'
>      *p = 1;
>      break;
>    case 'r':
> -    // CHECK-REFERENCE: null.cpp:29:15: runtime error: reference binding
> to null pointer of type 'int'
> +    // CHECK-REFERENCE: null.cpp:[[@LINE+1]]:15: runtime error: reference
> binding to null pointer of type 'int'
>      {int &r = *p;}
>      break;
>    case 'm':
> -    // CHECK-MEMBER: null.cpp:33:15: runtime error: member access within
> null pointer of type 'S'
> +    // CHECK-MEMBER: null.cpp:[[@LINE+1]]:15: runtime error: member
> access within null pointer of type 'S'
>      return s->k;
>    case 'f':
> -    // CHECK-MEMFUN: null.cpp:36:12: runtime error: member call on null
> pointer of type 'S'
> +    // CHECK-MEMFUN: null.cpp:[[@LINE+1]]:12: runtime error: member call
> on null pointer of type 'S'
>      return s->f();
>    }
>  }
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>



-- 
Alexey Samsonov
vonosmas at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150216/7320318b/attachment.html>


More information about the llvm-commits mailing list