From cdce3e8385927bf2cf2a21902d6563ecea37262c Mon Sep 17 00:00:00 2001 From: Martin Nowack Date: Wed, 5 Sep 2018 09:55:48 +0100 Subject: Use FileCheck and LINE instead of grep if possible As we do not support LLVM 2.9 anymore, we can use FileCheck LINE instead of hard coding line numbers. --- test/Feature/OneOutOfBounds.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/Feature/OneOutOfBounds.c') diff --git a/test/Feature/OneOutOfBounds.c b/test/Feature/OneOutOfBounds.c index 85fb2a79..88a2ae43 100644 --- a/test/Feature/OneOutOfBounds.c +++ b/test/Feature/OneOutOfBounds.c @@ -5,8 +5,7 @@ int main() { int *x = malloc(sizeof(int)); - // CHECK: OneOutOfBounds.c:10: memory error: out of bound pointer - // FIXME: Use FileCheck's relative line numbers + // CHECK: OneOutOfBounds.c:[[@LINE+1]]: memory error: out of bound pointer x[1] = 1; free(x); return 0; -- cgit 1.4.1