From 3f4181db66918dd862913dd7cdb3362f627bdefb Mon Sep 17 00:00:00 2001 From: Filipe Cabecinhas Date: Thu, 23 Feb 2017 17:23:28 +0000 Subject: [PATCH] [test] Use @LINE macro llvm-svn: 295995 --- compiler-rt/test/ubsan/TestCases/Misc/vla.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler-rt/test/ubsan/TestCases/Misc/vla.c b/compiler-rt/test/ubsan/TestCases/Misc/vla.c index 10721537bbbc..1939551f2ddb 100644 --- a/compiler-rt/test/ubsan/TestCases/Misc/vla.c +++ b/compiler-rt/test/ubsan/TestCases/Misc/vla.c @@ -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; }