☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
ptrmem1.C
☽
☼
gcc/testsuite/g++.old-deja/g++.pt/ptrmem1.C
code
plain
raw
1
// { dg-do run }
2
class foo
3
{
4
public:
5
template<class T>
6
T bar() { return 7; }
7
};
8
9
int
10
main()
11
{
12
foo f;
13
14
int (foo::*s)() = &foo::bar<int>;
15
if ((f.*s)() == 7)
16
return 0;
17
else
18
return 1;
19
}