diff options
Diffstat (limited to 'gcc_arm/testsuite/g++.old-deja/g++.pt/explicit62.C')
-rwxr-xr-x | gcc_arm/testsuite/g++.old-deja/g++.pt/explicit62.C | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc_arm/testsuite/g++.old-deja/g++.pt/explicit62.C b/gcc_arm/testsuite/g++.old-deja/g++.pt/explicit62.C new file mode 100755 index 0000000..5917ce0 --- /dev/null +++ b/gcc_arm/testsuite/g++.old-deja/g++.pt/explicit62.C @@ -0,0 +1,19 @@ +extern "C" void abort (); + +template <class T> void f () +{ +} + + +template <class T> class C +{ + friend void f<char> (); + public: + void ff () { f<char> (); } +}; + +int main () +{ + C<int> c; + c.ff(); +} |