summaryrefslogtreecommitdiff
path: root/gcc_arm/testsuite/g++.old-deja/g++.pt/defarg5.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc_arm/testsuite/g++.old-deja/g++.pt/defarg5.C')
-rwxr-xr-xgcc_arm/testsuite/g++.old-deja/g++.pt/defarg5.C24
1 files changed, 24 insertions, 0 deletions
diff --git a/gcc_arm/testsuite/g++.old-deja/g++.pt/defarg5.C b/gcc_arm/testsuite/g++.old-deja/g++.pt/defarg5.C
new file mode 100755
index 0000000..6a68bad
--- /dev/null
+++ b/gcc_arm/testsuite/g++.old-deja/g++.pt/defarg5.C
@@ -0,0 +1,24 @@
+// Build don't link:
+
+template <int dim>
+class Point {
+ public:
+ Point (Point<dim> &);
+ Point<dim> & operator = (Point<dim> &);
+};
+
+
+
+template <int dim>
+class bar{
+ public:
+ void foo (Point<dim> p = Point<dim>());
+};
+
+
+
+template <>
+void bar<2>::foo (Point<2> p) {
+ const int dim = 2;
+ Point<dim> q = p;
+};