From egcs release branch
From-SVN: r16867
This commit is contained in:
parent
f45ebe4754
commit
fbdd9d76bf
1 changed files with 21 additions and 0 deletions
21
gcc/testsuite/g++.old-deja/g++.pt/spec1.C
Normal file
21
gcc/testsuite/g++.old-deja/g++.pt/spec1.C
Normal file
|
@ -0,0 +1,21 @@
|
|||
// Build don't link:
|
||||
|
||||
template <class S, class T>
|
||||
class mem_fun1_t {
|
||||
public:
|
||||
mem_fun1_t(S (T::*pf)(double)) {}
|
||||
};
|
||||
|
||||
template <class T>
|
||||
class mem_fun1_t<void, T> {
|
||||
public:
|
||||
mem_fun1_t(void (T::*pf)(double)) {}
|
||||
};
|
||||
|
||||
struct Operation {
|
||||
double eval(double) {}
|
||||
};
|
||||
|
||||
int main() {
|
||||
mem_fun1_t<double, Operation> m(&Operation::eval);
|
||||
}
|
Loading…
Add table
Reference in a new issue