diff options
Diffstat (limited to 'gcc_arm/testsuite/g++.old-deja/g++.pt/explicit13.C')
-rwxr-xr-x | gcc_arm/testsuite/g++.old-deja/g++.pt/explicit13.C | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gcc_arm/testsuite/g++.old-deja/g++.pt/explicit13.C b/gcc_arm/testsuite/g++.old-deja/g++.pt/explicit13.C new file mode 100755 index 0000000..fbb7901 --- /dev/null +++ b/gcc_arm/testsuite/g++.old-deja/g++.pt/explicit13.C @@ -0,0 +1,22 @@ +// Build don't run: +// GROUPS passed templates + +template <class U> +struct S +{ + template <class T> + void foo(T t); + + template <class T> + void bar(T t) { this->template foo<U>(3.74); } +}; + +template <> +template <> +void S<int>::foo(int) { } + +int main() +{ + S<int> s; + s.bar(3); +} |