FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / explicit17.C
blob4abd17e49391eace104258ec98daf0642be0e6d6
1 // Build don't link:
2 // GROUPS passed templates
3 // Special g++ Options: -ansi -pedantic-errors -w
4 template <class T, class U>
5 void foo(U u, T t);
7 template <class T>
8 void foo(T t);
10 template <class T>
11 struct S {};
13 template <class T>
14 void foo(const S<T>&);
16 void bar()
18   void (*fn)(double, int) = 
19     (void (*)(double, int)) &foo<int>;
20   void (*fn2)(double) = foo<double>;
21   foo<int>(3, 3.0);
22   foo<int>(S<int>());