[compiler-rt] r295995 - [test] Use @LINE macro
Filipe Cabecinhas via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 23 09:23:28 PST 2017
Author: filcab
Date: Thu Feb 23 11:23:28 2017
New Revision: 295995
URL: http://llvm.org/viewvc/llvm-project?rev=295995&view=rev
Log:
[test] Use @LINE macro
Modified:
compiler-rt/trunk/test/ubsan/TestCases/Misc/vla.c
Modified: compiler-rt/trunk/test/ubsan/TestCases/Misc/vla.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/ubsan/TestCases/Misc/vla.c?rev=295995&r1=295994&r2=295995&view=diff
==============================================================================
--- compiler-rt/trunk/test/ubsan/TestCases/Misc/vla.c (original)
+++ compiler-rt/trunk/test/ubsan/TestCases/Misc/vla.c Thu Feb 23 11:23:28 2017
@@ -4,8 +4,8 @@
// RUN: %run %t a b
int main(int argc, char **argv) {
- // CHECK-MINUS-ONE: vla.c:9:11: runtime error: variable length array bound evaluates to non-positive value -1
- // CHECK-ZERO: vla.c:9:11: runtime error: variable length array bound evaluates to non-positive value 0
+ // CHECK-MINUS-ONE: vla.c:[[@LINE+2]]:11: runtime error: variable length array bound evaluates to non-positive value -1
+ // CHECK-ZERO: vla.c:[[@LINE+1]]:11: runtime error: variable length array bound evaluates to non-positive value 0
int arr[argc - 2];
return 0;
}
More information about the llvm-commits
mailing list