diff options
author | Chris Lattner <sabre@nondot.org> | 2010-05-01 01:42:06 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-05-01 01:42:06 +0000 |
commit | 62cf344e403f99dcb58f3f7ab9fcb365ef886f77 (patch) | |
tree | ddb0db8e9e39fedf6a5defe621a4a24ae9170c54 /test/CodeGenCXX/member-function-pointer-calls.cpp | |
parent | 77bb1aa78bcd26e42c0382043e65a2b03242be4d (diff) |
with recent optimizer changes, these all get devirtualized.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102825 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/member-function-pointer-calls.cpp')
-rw-r--r-- | test/CodeGenCXX/member-function-pointer-calls.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/test/CodeGenCXX/member-function-pointer-calls.cpp b/test/CodeGenCXX/member-function-pointer-calls.cpp index e1f2eb78d4..6f0ef81fe3 100644 --- a/test/CodeGenCXX/member-function-pointer-calls.cpp +++ b/test/CodeGenCXX/member-function-pointer-calls.cpp @@ -9,18 +9,17 @@ int f(A* a, int (A::*fp)()) { } // 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); } |