From 8cabc53215c451df45358b98594fc40591790f2e Mon Sep 17 00:00:00 2001 From: Filipe Cabecinhas Date: Sat, 14 Feb 2015 00:09:09 +0000 Subject: [PATCH] Use @LINE instead of hardcoded line numbers llvm-svn: 229190 --- compiler-rt/test/ubsan/TestCases/TypeCheck/null.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/compiler-rt/test/ubsan/TestCases/TypeCheck/null.cpp b/compiler-rt/test/ubsan/TestCases/TypeCheck/null.cpp index 2a90f7f..190dc30 100644 --- a/compiler-rt/test/ubsan/TestCases/TypeCheck/null.cpp +++ b/compiler-rt/test/ubsan/TestCases/TypeCheck/null.cpp @@ -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(); } } -- 2.7.4