FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / spec16.C
blob434dcc22e92eaa6a6ea70aace00c5d5b1fe1132f
1 // Build don't link:
3 template<class K>
4 struct A {
5         int foo(const K&);
6         int bar(const K&);
7 };
9 template<class K>
10 int
11 A<K>::bar(const K& k)
13         return(foo(k));
16 template<>
17 int
18 A<const char*>::foo(const char*const& k)
20         return((__SIZE_TYPE__)k);