2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / spec16.C
blobdbe44269a9440770413311d3a6a6cfac7e03715a
1 // { dg-do assemble  }
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);