OSDN Git Service

Formatting fixes.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / spec1.C
1 // { dg-do assemble  }
2
3 template <class S, class T>
4 class mem_fun1_t {
5 public:
6   mem_fun1_t(S (T::*pf)(double)) {} 
7 };
8
9 template <class T>
10 class mem_fun1_t<void, T> { 
11 public:
12   mem_fun1_t(void (T::*pf)(double)) {}
13 };
14
15 struct Operation {
16   double eval(double) { return 0; }
17 };
18
19 int main() {
20   mem_fun1_t<double, Operation> m(&Operation::eval);
21 }