diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/explicit12.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/explicit12.C | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/explicit12.C b/gcc/testsuite/g++.old-deja/g++.pt/explicit12.C new file mode 100644 index 000000000..ac8b7c5aa --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/explicit12.C @@ -0,0 +1,20 @@ +// { dg-do link } +// { dg-options "-ansi -pedantic-errors -w" } +// GROUPS passed templates +template <class U> +struct S +{ + template <class T> + void foo(T t); +}; + + +template <> +template <> +void S<char*>::foo<int>(int) {} + +int main() +{ + S<char*> s; + s.foo<int>(3.0); +} |