[test] Use @LINE macro

llvm-svn: 295995
This commit is contained in:
Filipe Cabecinhas 2017-02-23 17:23:28 +00:00
parent 33dd486f1d
commit 3f4181db66
1 changed files with 2 additions and 2 deletions

View File

@ -4,8 +4,8 @@
// RUN: %run %t a b // RUN: %run %t a b
int main(int argc, char **argv) { 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-MINUS-ONE: vla.c:[[@LINE+2]]: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-ZERO: vla.c:[[@LINE+1]]:11: runtime error: variable length array bound evaluates to non-positive value 0
int arr[argc - 2]; int arr[argc - 2];
return 0; return 0;
} }