diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/explicit31.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/explicit31.C | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/explicit31.C b/gcc/testsuite/g++.old-deja/g++.pt/explicit31.C new file mode 100644 index 000000000..e4f6a5b13 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/explicit31.C @@ -0,0 +1,17 @@ +// { dg-do link } +// { dg-options "-ansi -pedantic-errors -w" } +// GROUPS passed templates +template <class T> +struct S +{ + template <class U> + static double foo(U u) { return (double) u; } +}; + + +int main() +{ + double d = S<int>::foo<char>(3.3); + + return (d >= 3.1); +} |