[cfe-commits] r102825 - in /cfe/trunk/test/CodeGenCXX: member-function-pointer-calls.cpp member-initializers.cpp
Chris Lattner
sabre at nondot.org
Fri Apr 30 18:42:06 PDT 2010
Author: lattner
Date: Fri Apr 30 20:42:06 2010
New Revision: 102825
URL: http://llvm.org/viewvc/llvm-project?rev=102825&view=rev
Log:
with recent optimizer changes, these all get devirtualized.
Modified:
cfe/trunk/test/CodeGenCXX/member-function-pointer-calls.cpp
cfe/trunk/test/CodeGenCXX/member-initializers.cpp
Modified: cfe/trunk/test/CodeGenCXX/member-function-pointer-calls.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/member-function-pointer-calls.cpp?rev=102825&r1=102824&r2=102825&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/member-function-pointer-calls.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/member-function-pointer-calls.cpp Fri Apr 30 20:42:06 2010
@@ -9,18 +9,17 @@
}
// CHECK: define i32 @_Z2g1v()
+// CHECK-NEXT: {{.*}}:
+// CHECK-NEXT: ret i32 1
int g1() {
A a;
-
- // CHECK: call i32 @_ZN1A3vf1Ev
- // CHECK-NEXT: ret i32
return f(&a, &A::vf1);
}
+// CHECK: define i32 @_Z2g2v()
+// CHECK-NEXT: {{.*}}:
+// CHECK-NEXT: ret i32 2
int g2() {
A a;
-
- // CHECK: call i32 @_ZN1A3vf2Ev
- // CHECK-NEXT: ret i32
return f(&a, &A::vf2);
}
Modified: cfe/trunk/test/CodeGenCXX/member-initializers.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/member-initializers.cpp?rev=102825&r1=102824&r2=102825&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/member-initializers.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/member-initializers.cpp Fri Apr 30 20:42:06 2010
@@ -16,7 +16,7 @@
int f() {
B b;
- // CHECK: call i32 @_ZN1B1fEv
+ // CHECK: ret i32 2
return b.i;
}
More information about the cfe-commits
mailing list