repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
opt
/
ptrmem4.C
blob
ad39a371b58bd786737c13253dbb8b0a2e4c6435
1
// { dg-do compile }
2
// { dg-options "-O3" }
3
4
struct X { void foo (); };
5
6
template <typename>
7
inline void spawn (void (X::*fun_ptr)()) {}
8
9
void bar () {
10
void (X::*const comp)() = &X::foo;
11
spawn<int> (comp);
12
}