summaryrefslogtreecommitdiff
path: root/gcc_arm/testsuite/g++.old-deja/g++.pt/explicit64.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc_arm/testsuite/g++.old-deja/g++.pt/explicit64.C')
-rwxr-xr-xgcc_arm/testsuite/g++.old-deja/g++.pt/explicit64.C23
1 files changed, 23 insertions, 0 deletions
diff --git a/gcc_arm/testsuite/g++.old-deja/g++.pt/explicit64.C b/gcc_arm/testsuite/g++.old-deja/g++.pt/explicit64.C
new file mode 100755
index 0000000..2208b30
--- /dev/null
+++ b/gcc_arm/testsuite/g++.old-deja/g++.pt/explicit64.C
@@ -0,0 +1,23 @@
+extern "C" void abort ();
+
+template <class T> void f ()
+{
+ abort ();
+}
+
+template <> void f<char> ()
+{
+}
+
+template <class T> class C
+{
+ friend void f<char> ();
+ public:
+ void ff () { f<char> (); }
+};
+
+int main ()
+{
+ C<int> c;
+ c.ff();
+}