[compiler-rt] r216266 - [ubsan] Follow-up for r216263: fix the expected line number.

Alexander Potapenko glider at google.com
Fri Aug 22 05:44:18 PDT 2014


Author: glider
Date: Fri Aug 22 07:44:16 2014
New Revision: 216266

URL: http://llvm.org/viewvc/llvm-project?rev=216266&view=rev
Log:
[ubsan] Follow-up for r216263: fix the expected line number.

Modified:
    compiler-rt/trunk/test/ubsan/TestCases/TypeCheck/Function/function.cpp

Modified: compiler-rt/trunk/test/ubsan/TestCases/TypeCheck/Function/function.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/ubsan/TestCases/TypeCheck/Function/function.cpp?rev=216266&r1=216265&r2=216266&view=diff
==============================================================================
--- compiler-rt/trunk/test/ubsan/TestCases/TypeCheck/Function/function.cpp (original)
+++ compiler-rt/trunk/test/ubsan/TestCases/TypeCheck/Function/function.cpp Fri Aug 22 07:44:16 2014
@@ -14,7 +14,7 @@ void g(int x) {}
 
 int main(void) {
   // CHECK: runtime error: call to function f() through pointer to incorrect function type 'void (*)(int)'
-  // CHECK-NEXT: function.cpp:8: note: f() defined here
+  // CHECK-NEXT: function.cpp:11: note: f() defined here
   // NOSYM: runtime error: call to function (unknown) through pointer to incorrect function type 'void (*)(int)'
   // NOSYM-NEXT: ({{.*}}+0x{{.*}}): note: (unknown) defined here
   reinterpret_cast<void (*)(int)>(reinterpret_cast<uintptr_t>(f))(42);





More information about the llvm-commits mailing list