diff options
Diffstat (limited to 'gcc_arm/testsuite/g++.old-deja/g++.pt/spec16.C')
-rwxr-xr-x | gcc_arm/testsuite/g++.old-deja/g++.pt/spec16.C | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gcc_arm/testsuite/g++.old-deja/g++.pt/spec16.C b/gcc_arm/testsuite/g++.old-deja/g++.pt/spec16.C new file mode 100755 index 0000000..9f6da97 --- /dev/null +++ b/gcc_arm/testsuite/g++.old-deja/g++.pt/spec16.C @@ -0,0 +1,21 @@ +// Build don't link: + +template<class K> +struct A { + int foo(const K&); + int bar(const K&); +}; + +template<class K> +int +A<K>::bar(const K& k) +{ + return(foo(k)); +} + +template<> +int +A<const char*>::foo(const char*const& k) +{ + return((int)k); +} |