summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/ubsan
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2012-11-16 13:38:03 +0000
committerAlexey Samsonov <samsonov@google.com>2012-11-16 13:38:03 +0000
commit56f1ef7d3ba915740ad2ed59dac7b46e6ba7ea21 (patch)
tree1871765df889bf8ec7e7ac4399ce8d29de5fc224 /compiler-rt/lib/ubsan
parentbe9a293ddaa763b33340f3adb53da80cdb950d58 (diff)
downloadbcm5719-llvm-56f1ef7d3ba915740ad2ed59dac7b46e6ba7ea21.tar.gz
bcm5719-llvm-56f1ef7d3ba915740ad2ed59dac7b46e6ba7ea21.zip
ubsan: fix broken test case by using brand new [[@LINE]] FileCheck feature
llvm-svn: 168170
Diffstat (limited to 'compiler-rt/lib/ubsan')
-rw-r--r--compiler-rt/lib/ubsan/lit_tests/TypeCheck/vptr.cpp6
1 files 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 ee61e2c03bd..eaa44212061 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();
}
}
OpenPOWER on IntegriCloud