From 56f1ef7d3ba915740ad2ed59dac7b46e6ba7ea21 Mon Sep 17 00:00:00 2001 From: Alexey Samsonov Date: Fri, 16 Nov 2012 13:38:03 +0000 Subject: [PATCH] ubsan: fix broken test case by using brand new [[@LINE]] FileCheck feature llvm-svn: 168170 --- compiler-rt/lib/ubsan/lit_tests/TypeCheck/vptr.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler-rt/lib/ubsan/lit_tests/TypeCheck/vptr.cpp b/compiler-rt/lib/ubsan/lit_tests/TypeCheck/vptr.cpp index ee61e2c..eaa4421 100644 --- a/compiler-rt/lib/ubsan/lit_tests/TypeCheck/vptr.cpp +++ b/compiler-rt/lib/ubsan/lit_tests/TypeCheck/vptr.cpp @@ -64,14 +64,14 @@ int main(int, char **argv) { switch (argv[1][0]) { case 'r': - // CHECK-REFERENCE: vptr.cpp:65:13: fatal error: reference binding to address 0x{{[0-9a-f]*}} which does not point to an object of type 'T' + // CHECK-REFERENCE: vptr.cpp:[[@LINE+1]]:13: fatal error: reference binding to address 0x{{[0-9a-f]*}} which does not point to an object of type 'T' {T &r = *p;} break; case 'm': - // CHECK-MEMBER: vptr.cpp:69:15: fatal error: member access within address 0x{{[0-9a-f]*}} which does not point to an object of type 'T' + // CHECK-MEMBER: vptr.cpp:[[@LINE+1]]:15: fatal error: member access within address 0x{{[0-9a-f]*}} which does not point to an object of type 'T' return p->b; case 'f': - // CHECK-MEMFUN: vptr.cpp:72:12: fatal error: member call on address 0x{{[0-9a-f]*}} which does not point to an object of type 'T' + // CHECK-MEMFUN: vptr.cpp:[[@LINE+1]]:12: fatal error: member call on address 0x{{[0-9a-f]*}} which does not point to an object of type 'T' return p->g(); } } -- 2.7.4