2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / template / overload2.C
blob253d055cdf674c2d98ebc3867682557dc0d56f75
1 template <class T, int (T::*)> struct foo;
3 template <class T>
4 int f(foo<T,&T::ob_type>*);
6 template <class T>
7 char* f(...);
9 struct X { int ob_type; };
10 struct Y { char* ob_type; };
11   int x = f<X>(0);
12 char* y = f<Y>(0);
13 char* z = f<int>(0);
15 int main() { return 0; }