OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* gcc.dg/20020201-1.c: Use cleanup-coverage_files.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
ptrmem1.C
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
}