Sign in
llvm
/
llvm-archive
/
67ca873b99b7e631820d261833301c41ad8006b1
/
.
/
llvm-gcc-4.0
/
gcc
/
testsuite
/
g++.dg
/
opt
/
ptrmem4.C
blob: ad39a371b58bd786737c13253dbb8b0a2e4c6435 [
file
] [
log
] [
blame
]
// { dg-do compile }
// { dg-options "-O3" }
struct
X
{
void
foo
();
};
template
<typename>
inline
void
spawn
(
void
(
X
::*
fun_ptr
)())
{}
void
bar
()
{
void
(
X
::*
const
comp
)()
=
&
X
::
foo
;
spawn
<int>
(
comp
);
}