repo.or.cz
/
llvm
/
avr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix PR4948 (and a leak): by not destroying the DwarfException
[llvm/avr.git]
/
test
/
FrontendC++
/
ptr-to-method-devirt.cpp
blob
358b801af55695beb66339e71f7340de3a932553
1
// PR1602
2
// RUN: %llvmgxx -c -emit-llvm %s -o - -O3 | llvm-dis | not grep ptrtoint
3
// RUN: %llvmgxx -c -emit-llvm %s -o - -O3 | llvm-dis | grep getelementptr | count 1
4
5
6
struct
S
{
virtual
void
f
(); };
7
8
typedef
void
(
S
::*
P
)(
void
);
9
10
const
P p
= &
S
::
f
;
11
12
void
g
(
S s
) {
13
(
s
.*
p
)();
14
}