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