repo.or.cz
/
llvm
/
stm8.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
This should always be signed chars, so use int8_t. This fixes a miscompile when
[llvm/stm8.git]
/
test
/
FrontendC++
/
2003-12-08-ArrayOfPtrToMemberFunc.cpp
blob
b87e7869ed72c629c3ed16bea11b80a63d216743
1
// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
2
3
struct
Evil
{
4
void
fun
();
5
};
6
int
foo
();
7
typedef
void
(
Evil
::*
memfunptr
) ();
8
static
memfunptr jumpTable
[] = { &
Evil
::
fun
};
9
10
void
Evil
::
fun
() {
11
(
this
->*
jumpTable
[
foo
()]) ();
12
}