diff options
Diffstat (limited to 'gcc_arm/testsuite/g++.old-deja/g++.pt/explicit21.C')
-rwxr-xr-x | gcc_arm/testsuite/g++.old-deja/g++.pt/explicit21.C | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc_arm/testsuite/g++.old-deja/g++.pt/explicit21.C b/gcc_arm/testsuite/g++.old-deja/g++.pt/explicit21.C new file mode 100755 index 0000000..a99a49b --- /dev/null +++ b/gcc_arm/testsuite/g++.old-deja/g++.pt/explicit21.C @@ -0,0 +1,10 @@ +// Build don't link: +// GROUPS passed templates +template <class T> +T foo(T* t); + +template <> +int foo<char>(char c); // ERROR - does not match declaration. + +template <> +int bar<char>(); // ERROR - no template bar. |